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 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>