mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
[Team modal] Temporary edit team fix
This commit is contained in:
1 parent
d5900b605e
commit
3bdfad22e6
5 files changed
+28
-22
No files matched your search
@@ -67,6 +67,7 @@ import useVuelidate from '@vuelidate/core'
|
||||
import { required } from '@vuelidate/validators'
|
||||
import errorUtils from '@/plugins/lib@auth/_utils/error.utils'
|
||||
import tmUtils from '@/plugins/tm@_utils/tm.utils'
|
||||
import axios from 'axios'
|
||||
|
||||
const atLeastOne = (value) => value.length
|
||||
|
||||
@@ -124,9 +125,12 @@ export default {
|
||||
async save() {
|
||||
if (!(await this.v$.$validate())) return
|
||||
|
||||
|
||||
try {
|
||||
if (this.team.id)
|
||||
await this.$axios.put_auth_data(`v1/teams/${this.team.id}`, this.team)
|
||||
if (this.team.id) {
|
||||
// await this.$axios.put_auth_data(`v1/teams/${this.team.id}`, this.team)
|
||||
await axios.put(`v1/teams/${this.team.id}`, {data: this.team})
|
||||
}
|
||||
else
|
||||
await this.$axios.post_auth_data(`v1/teams`, this.team)
|
||||
|
||||
|
||||
Reference in new issue
Block a user