This commit is contained in:
romankko2 committed 2023-02-10 17:33:51 +01:00
1 parent 1024f73ab5
commit 4e8fa39e34
8 files changed
+79 -13

No files matched your search

@@ -2,8 +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 ukončiť <b>{{ task.title }}</b>?</h1>
<h1>Ste si istý, že chcete {{ this.task?.id ? 'ukončiť' : 'obnoviť' }} task, z masterTasku <b>{{ task.master_task }}</b>?</h1>
<v-icon
@click.stop="visible = false"
icon="mdi-close"
@@ -38,7 +37,7 @@ export default {
async complete() {
try {
const task = {...this.task, is_finished: true}
await this.$axios.patch_auth(`v1/tasks/${this.task.id}`, task)
await this.$axios.patch_auth(`v1/subtasks/${this.task.id}`, task)
this.visible = false
this.$emit('task-completed', task)
} catch (error) {