This commit is contained in:
romankko2 committed 2023-01-31 16:23:39 +01:00
1 parent 647125e7fd
commit 8754a2d93c
2 files changed
+5 -2

No files matched your search

@@ -125,10 +125,13 @@ export default {
return
try {
if (this.team.id)
if (this.team.id) {
await this.$axios.post_auth(`v1/teams/${this.team.id}`, this.team)
this.$emit('update', this.team)
}
else
await this.$axios.post_auth(`v1/teams`, this.team)
this.$emit('update', this.team)
this.closeModal()
} catch (error) {
@@ -5,7 +5,7 @@
class="subheader-input"
variant="outlined"
label="Zamestanec"
:items="allEmployees"
:items="[null, ...allEmployees]"
item-title="fullName"
item-value="id"
></v-select>