mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
.
This commit is contained in:
1 parent
647125e7fd
commit
8754a2d93c
2 files changed
+5
-2
No files matched your search
@@ -125,10 +125,13 @@ export default {
|
|||||||
return
|
return
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (this.team.id)
|
if (this.team.id) {
|
||||||
await this.$axios.post_auth(`v1/teams/${this.team.id}`, this.team)
|
await this.$axios.post_auth(`v1/teams/${this.team.id}`, this.team)
|
||||||
|
this.$emit('update', this.team)
|
||||||
|
}
|
||||||
else
|
else
|
||||||
await this.$axios.post_auth(`v1/teams`, this.team)
|
await this.$axios.post_auth(`v1/teams`, this.team)
|
||||||
|
this.$emit('update', this.team)
|
||||||
|
|
||||||
this.closeModal()
|
this.closeModal()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
class="subheader-input"
|
class="subheader-input"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
label="Zamestanec"
|
label="Zamestanec"
|
||||||
:items="allEmployees"
|
:items="[null, ...allEmployees]"
|
||||||
item-title="fullName"
|
item-title="fullName"
|
||||||
item-value="id"
|
item-value="id"
|
||||||
></v-select>
|
></v-select>
|
||||||
|
|||||||
Reference in new issue
Block a user