[subtask, masterTask] delete requests

This commit is contained in:
romankko2 committed 2023-02-08 18:41:07 +01:00
1 parent 17ed7616ee
commit 72d709cd13
4 files changed
+44 -29

No files matched your search

@@ -2,7 +2,7 @@
<v-dialog v-model="visible" max-width="650">
<v-card>
<div class="d-flex justify-space-between align-center">
<h1>Ste si istý, že chcete zmazať <b>{{ task.title }}</b>?</h1>
<h1>Ste si istý, že chcete zmazať task z masterTasku <b>{{ task.project_code }}</b>?</h1>
<v-icon
@click.stop="closeModal()"
@@ -42,7 +42,7 @@ export default {
async deleteTask() {
try {
await this.$axios.delete(`v1/tasks/${this.task.id}`)
await this.$axios.delete(`v1/subtasks/${this.task.id}`)
this.$emit('on-task-deleted', this.task)
this.closeModal()
} catch (error) {