|
36 | 36 | <template v-if="!deleted" slot="actions"> |
37 | 37 | <template v-if="!isDueSubmenuActive"> |
38 | 38 | <ActionButton |
39 | | - icon="icon-more" |
| 39 | + icon="icon-info" |
40 | 40 | :close-after-click="true" |
41 | 41 | @click="actionDetails"> |
42 | 42 | {{ t('deck', 'Board details') }} |
43 | 43 | </ActionButton> |
44 | | - <ActionButton v-if="canManage" |
| 44 | + <ActionButton v-if="canManage && !board.archived" |
45 | 45 | icon="icon-rename" |
46 | 46 | :close-after-click="true" |
47 | 47 | @click="actionEdit"> |
48 | 48 | {{ t('deck', 'Edit board') }} |
49 | 49 | </ActionButton> |
50 | | - <ActionButton v-if="canManage" |
| 50 | + <ActionButton v-if="canManage && !board.archived" |
51 | 51 | icon="icon-clone" |
52 | 52 | :close-after-click="true" |
53 | 53 | @click="actionClone"> |
54 | 54 | {{ t('deck', 'Clone board') }} |
55 | 55 | </ActionButton> |
56 | | - <ActionButton v-if="canManage" |
| 56 | + <ActionButton v-if="canManage && board.archived" |
57 | 57 | icon="icon-archive" |
58 | 58 | :close-after-click="true" |
59 | 59 | @click="actionUnarchive"> |
60 | 60 | {{ t('deck', 'Unarchive board') }} |
61 | 61 | </ActionButton> |
62 | | - <ActionButton v-if="canManage" |
| 62 | + <ActionButton v-else-if="canManage && !board.archived" |
63 | 63 | icon="icon-archive" |
64 | 64 | :close-after-click="true" |
65 | 65 | @click="actionArchive"> |
66 | 66 | {{ t('deck', 'Archive board') }} |
67 | 67 | </ActionButton> |
68 | 68 |
|
69 | | - <ActionButton v-if="board.acl.length === 0" :icon="board.settings['notify-due'] === 'off' ? 'icon-sound' : 'icon-sound-off'" @click="board.settings['notify-due'] === 'off' ? updateSetting('notify-due', 'all') : updateSetting('notify-due', 'off')"> |
| 69 | + <ActionButton v-if="!board.archived && board.acl.length === 0" :icon="board.settings['notify-due'] === 'off' ? 'icon-sound' : 'icon-sound-off'" @click="board.settings['notify-due'] === 'off' ? updateSetting('notify-due', 'all') : updateSetting('notify-due', 'off')"> |
70 | 70 | {{ board.settings['notify-due'] === 'off' ? t('deck', 'Turn on due date reminders') : t('deck', 'Turn off due date reminders') }} |
71 | 71 | </ActionButton> |
72 | 72 | </template> |
|
105 | 105 | {{ t('deck', 'No notifications') }} |
106 | 106 | </ActionButton> |
107 | 107 | </template> |
108 | | - <ActionButton v-else-if="board.acl.length > 0" |
| 108 | + <ActionButton v-else-if="!board.archived && board.acl.length > 0" |
109 | 109 | :title="t('deck', 'Due date reminders')" |
110 | 110 | :icon="dueDateReminderIcon" |
111 | 111 | @click="isDueSubmenuActive=true"> |
@@ -186,7 +186,7 @@ export default { |
186 | 186 | } |
187 | 187 | }, |
188 | 188 | canManage() { |
189 | | - return this.board.permissions.PERMISSION_MANAGE && !this.board.archived |
| 189 | + return this.board.permissions.PERMISSION_MANAGE |
190 | 190 | }, |
191 | 191 | dueDateReminderIcon() { |
192 | 192 | if (this.board.settings['notify-due'] === 'all') { |
|
0 commit comments