Feat(office365) Finished connection to API

This commit is contained in:
Matej Glasnák committed 2024-11-19 12:06:19 +01:00
1 parent a4941e511f
commit 5bf90cff14
8 files changed
+35 -31

No files matched your search

@@ -230,6 +230,7 @@ export default {
this.subtask = this._enrichTask(data)
// TODO: Remove? riesil som neodstranovanie jedineho zanamu v trvani a odpracovanom case
console.log('2', this.subtask)
this.$forceUpdate()
})
@@ -240,11 +241,10 @@ export default {
methods: {
toggleEditMode() {
// TODO office365: Only for office365 events
return this.$events.emit('show-unable-to-edit-office-task-modal', { mode: 'edit' })
if (this.subtask.type == 'office365')
return this.$events.emit('show-unable-to-edit-office-task-modal', { mode: 'edit' })
// this.editMode = !this.editMode
this.editMode = !this.editMode
},
openDatepicker(ref) {
@@ -393,9 +393,10 @@ export default {
},
openDeleteTaskModal(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 })
if (subtask.type == 'office365')
return this.$events.emit('show-unable-to-edit-office-task-modal', { mode: 'delete' })
this.$events.emit('show-delete-task-modal', { subtask })
},
showCompleteTaskModal() {