File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 408408 {{ t('mail', 'Reply with meeting') }}
409409 </ActionButton >
410410 <ActionButton
411+ v-if =" tasksEnabled "
411412 :close-after-click =" true "
412413 @click .prevent =" showTaskModal = true " >
413414 <template #icon >
@@ -901,6 +902,10 @@ export default {
901902 return this .mainStore .getMailbox (this .account .archiveMailboxId )
902903 },
903904
905+ tasksEnabled () {
906+ return this .mainStore .getTaskCalendarsForCurrentUser .length > 0
907+ },
908+
904909 isSnoozedMailbox () {
905910 return this .mailbox .databaseId === this .account .snoozeMailboxId
906911 },
Original file line number Diff line number Diff line change 150150 {{ t('mail', 'Reply with meeting') }}
151151 </ActionButton >
152152 <ActionButton
153+ v-if =" tasksEnabled "
153154 :close-after-click =" true "
154155 @click .prevent =" $emit (' open-task-modal' )" >
155156 <template #icon >
@@ -442,6 +443,10 @@ export default {
442443 return mailboxHasRights (this .mailbox , ' te' )
443444 },
444445
446+ tasksEnabled () {
447+ return this .mainStore .getTaskCalendarsForCurrentUser .length > 0
448+ },
449+
445450 isSnoozedMailbox () {
446451 return this .mailbox .databaseId === this .account .snoozeMailboxId
447452 },
You can’t perform that action at this time.
0 commit comments