From 8754a2d93cbd49fb099eb17bd638604bdd211d30 Mon Sep 17 00:00:00 2001 From: romankko2 Date: Tue, 31 Jan 2023 16:23:39 +0100 Subject: [PATCH] . --- app/src/plugins/tm@modal/team/z-team-modal.vue | 5 ++++- app/src/plugins/tm@overview/_components/z-tasks-search.vue | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/plugins/tm@modal/team/z-team-modal.vue b/app/src/plugins/tm@modal/team/z-team-modal.vue index 2c61d58..35b525a 100644 --- a/app/src/plugins/tm@modal/team/z-team-modal.vue +++ b/app/src/plugins/tm@modal/team/z-team-modal.vue @@ -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) { diff --git a/app/src/plugins/tm@overview/_components/z-tasks-search.vue b/app/src/plugins/tm@overview/_components/z-tasks-search.vue index de44967..a7caeb7 100644 --- a/app/src/plugins/tm@overview/_components/z-tasks-search.vue +++ b/app/src/plugins/tm@overview/_components/z-tasks-search.vue @@ -5,7 +5,7 @@ class="subheader-input" variant="outlined" label="Zamestanec" - :items="allEmployees" + :items="[null, ...allEmployees]" item-title="fullName" item-value="id" >