[Projects] Added filters

This commit is contained in:
Matej Glasnák committed 2023-03-01 14:19:33 +01:00
1 parent 919b2eebbe
commit 302286bff8
29 files changed
+508 -350

No files matched your search

@@ -2,7 +2,7 @@
<v-dialog v-model="visible" max-width="750">
<v-card>
<div class="d-flex justify-space-between align-center">
<h1>Ste si istý, že chcete zmazať <b>{{ masterTask.name }}</b>?</h1>
<h1>Ste si istý, že chcete zmazať <b>{{ mastertask.name }}</b>?</h1>
<v-icon
@click.stop="closeModal()"
@@ -26,13 +26,13 @@ export default {
data() {
return {
visible: false,
masterTask: null
mastertask: null
}
},
methods: {
async showModal(masterTask) {
this.masterTask = masterTask
async showModal(mastertask) {
this.mastertask = mastertask
this.visible = true
},
@@ -42,8 +42,8 @@ export default {
async deleteMasterTask() {
try {
await this.$axios.delete_auth(`v1/mastertasks/${this.masterTask.id}`)
this.$emit('on-master-task-deleted', this.masterTask)
await this.$axios.delete_auth(`v1/mastertasks/${this.mastertask.id}`)
this.$emit('on-master-task-deleted', this.mastertask)
this.closeModal()
} catch (error) {
this.$toast.error(error)