review, edit-team-modal, header responsive

This commit is contained in:
romankko2 committed 2022-11-30 19:48:52 +01:00
1 parent df4fe36576
commit 66996747f4
20 files changed
+182 -213

No files matched your search

@@ -12,9 +12,9 @@
<td>{{ team.name }}</td>
<td class="task-action">
<div class="d-flex justify-start">
<img class="pencil-icon" :src="require('@/plugins/tm@overview/_img/pencil-icon.svg')" alt="pencil-icon" />
<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>
</td>
@@ -25,10 +25,12 @@
<script>
import ADeleteTeamModal from '@/plugins/app/_components/a-delete-team-modal.vue'
import AEditTeamModal from '@/plugins/app/_components/a-edit-team-modal.vue'
export default {
components: {
ADeleteTeamModal
ADeleteTeamModal,
AEditTeamModal
},
props: {
@@ -40,7 +42,8 @@ export default {
data() {
return {
showDeleteModal: false
showDeleteModal: false,
showEditModal: false
}
},
@@ -49,6 +52,7 @@ 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)
}
+2 -1
View File
@@ -22,7 +22,8 @@ export default {
try {
this.teams = await this.$axios.get_auth_data('v1/teams')
} catch (error) {
console.error(error)
this.teams = {error: error.data.error}
this.$toast.error(error.data.error)
}
}
}