Feat(task) Added estimated hours, fixed edit for office tasks

This commit is contained in:
Matej Glasnák committed 2024-11-08 16:19:45 +01:00
1 parent 687681865c
commit 86bc41450e
10 files changed
+72 -44

No files matched your search

+12 -2
View File
@@ -109,7 +109,7 @@
<div class="d-flex justify-space-between align-center modal-header border-bottom pb-4">
<h1>{{ subtask.title }}</h1>
<div class="d-flex justify-start">
<img class="icon" :src="require('@/plugins/app/_img/icons/pencil.svg')" alt="pencil-icon" @click.stop="editMode = !editMode" />
<img class="icon" :src="require('@/plugins/app/_img/icons/pencil.svg')" alt="pencil-icon" @click.stop="toggleEditMode" />
<img class="icon trash" :src="require('@/plugins/app/_img/icons/bin.svg')" alt="trash-icon" @click.stop="openDeleteTaskModal(subtask)" />
</div>
</div>
@@ -239,6 +239,14 @@ export default {
},
methods: {
toggleEditMode() {
// TODO office365: Only for office365 events
return this.$events.emit('show-unable-to-edit-office-task-modal', { mode: 'edit' })
// this.editMode = !this.editMode
},
openDatepicker(ref) {
this.$refs[ref].openMenu()
},
@@ -385,7 +393,9 @@ export default {
},
openDeleteTaskModal(subtask) {
this.$events.emit('show-delete-task-modal', { subtask })
// TODO office365: Only for office365 events
this.$events.emit('show-unable-to-edit-office-task-modal', { mode: 'delete' })
// this.$events.emit('show-delete-task-modal', { subtask })
},
showCompleteTaskModal() {