Refactoring

This commit is contained in:
Matej Glasnák committed 2022-11-30 20:29:19 +01:00
1 parent 66996747f4
commit 628c6afcb0
12 files changed
+27 -78

No files matched your search

@@ -55,7 +55,6 @@ export default {
try {
await this.$axios.delete(`v1/teams/${id}`)
this.showDeleteModal = false
this.$toast.success('Úspešne ste odstránili task')
} catch (error) {
this.$toast.error(error)
}
@@ -53,7 +53,6 @@ export default {
try {
await this.$axios.delete(`v1/teams/${id}`)
this.showDeleteModal = false
this.$toast.success('Úspešne ste odstránili task')
} catch (error) {
this.$toast.error(error)
}
@@ -14,6 +14,7 @@
<div class="d-flex justify-start">
<img class="pencil-icon" :src="require('@/plugins/tm@overview/_img/pencil-icon.svg')" alt="pencil-icon" @click.stop="showEditModal = true" />
<img class="trash-icon" :src="require('@/plugins/tm@overview/_img/trash-icon.svg')" alt="trash-icon" @click.stop="showDeleteModal = true" />
<A-edit-team-modal :show="showEditModal" :team="team" @close-modal="showEditModal = false" />
<A-delete-team-modal :show="showDeleteModal" :team="team" @delete-team="deleteTeam" @close-modal="showDeleteModal = false" />
</div>
@@ -52,7 +53,6 @@ export default {
try {
await this.$axios.delete(`v1/teams/${id}`)
this.showDeleteModal = false
this.$toast.success('Úspešne ste odstránili tím')
} catch (error) {
this.$toast.error(error)
}