mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
[Task] Delete fix
This commit is contained in:
1 parent
388466db98
commit
ef6369714b
35 files changed
+93
-79
No files matched your search
@@ -34,17 +34,18 @@
|
||||
<div class="d-flex justify-space-between align-center modal-header border-bottom pb-4">
|
||||
<h1>{{ task.title }}</h1>
|
||||
<div class="d-flex justify-start">
|
||||
<img class="icon" :src="require('@/plugins/tm@overview/_img/pencil-icon.svg')" alt="pencil-icon" @click.stop="editMode = !editMode" />
|
||||
<img class="icon trash" :src="require('@/plugins/tm@overview/_img/trash-icon.svg')" alt="trash-icon" @click.stop="openDeleteTaskModal(task)" />
|
||||
<img class="icon" :src="require('@/plugins/app/_img/icons/pencil.svg')" alt="pencil-icon" @click.stop="editMode = !editMode" />
|
||||
<img class="icon trash" :src="require('@/plugins/app/_img/icons/bin.svg')" alt="trash-icon" @click.stop="openDeleteTaskModal(task)" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<v-card-actions class="d-flex flex-column modal-content">
|
||||
<div class="w-100">
|
||||
<Z-task-readonly-info :task="task" />
|
||||
<Z-task-readonly-info :task="task" @close-modal="closeModal" />
|
||||
|
||||
<div class="d-flex justify-start align-center mt-8">
|
||||
<v-btn class="done-btn" @click.stop="task.is_finished = 1; save()">Dokončené</v-btn>
|
||||
<v-btn class="done-btn" v-if="!task.is_finished" @click.stop="showCompleteTaskModal()">Dokončiť</v-btn>
|
||||
<v-btn class="button secondary" v-else @click.stop="showCompleteTaskModal()">Znovu otvoriť</v-btn>
|
||||
<v-btn class="button secondary" @click="save()">Uložiť zmeny</v-btn>
|
||||
</div>
|
||||
</div>
|
||||
@@ -214,6 +215,10 @@ export default {
|
||||
this.$events.emit("show-delete-task-modal", { task })
|
||||
},
|
||||
|
||||
showCompleteTaskModal() {
|
||||
this.$events.emit('show-complete-task-modal', { subtask: this.task })
|
||||
},
|
||||
|
||||
filesUploaded(files) {
|
||||
this.task.files = files
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user