This commit is contained in:
Matej Glasnák committed 2023-02-01 14:58:17 +01:00
1 parent 0cf30d75e3
commit 3902cbd601
5 files changed
+97 -6

No files matched your search

@@ -38,6 +38,7 @@
v-model="team.employees[index]._fullName"
>
</v-text-field>
<v-icon
class="remove-input"
@click.stop="team.employees.splice(index, 1)"
@@ -125,9 +126,9 @@ export default {
try {
if (this.team.id)
await this.$axios.patch_auth(`v1/teams/${this.team.id}`, this.team)
await this.$axios.put_auth_data(`v1/teams/${this.team.id}`, this.team)
else
await this.$axios.post_auth(`v1/teams`, this.team)
await this.$axios.post_auth_data(`v1/teams`, this.team)
this.$emit('update', this.team)
this.closeModal()