Skip to content

Commit 3c21b35

Browse files
authored
Merge pull request #2539 from nextcloud/bugfix/2537
Apply proper checks for menu items
2 parents 82e1a7c + f7f0526 commit 3c21b35

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/components/navigation/AppNavigationBoard.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,37 +36,37 @@
3636
<template v-if="!deleted" slot="actions">
3737
<template v-if="!isDueSubmenuActive">
3838
<ActionButton
39-
icon="icon-more"
39+
icon="icon-info"
4040
:close-after-click="true"
4141
@click="actionDetails">
4242
{{ t('deck', 'Board details') }}
4343
</ActionButton>
44-
<ActionButton v-if="canManage"
44+
<ActionButton v-if="canManage && !board.archived"
4545
icon="icon-rename"
4646
:close-after-click="true"
4747
@click="actionEdit">
4848
{{ t('deck', 'Edit board') }}
4949
</ActionButton>
50-
<ActionButton v-if="canManage"
50+
<ActionButton v-if="canManage && !board.archived"
5151
icon="icon-clone"
5252
:close-after-click="true"
5353
@click="actionClone">
5454
{{ t('deck', 'Clone board') }}
5555
</ActionButton>
56-
<ActionButton v-if="canManage"
56+
<ActionButton v-if="canManage && board.archived"
5757
icon="icon-archive"
5858
:close-after-click="true"
5959
@click="actionUnarchive">
6060
{{ t('deck', 'Unarchive board') }}
6161
</ActionButton>
62-
<ActionButton v-if="canManage"
62+
<ActionButton v-else-if="canManage && !board.archived"
6363
icon="icon-archive"
6464
:close-after-click="true"
6565
@click="actionArchive">
6666
{{ t('deck', 'Archive board') }}
6767
</ActionButton>
6868

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')">
7070
{{ board.settings['notify-due'] === 'off' ? t('deck', 'Turn on due date reminders') : t('deck', 'Turn off due date reminders') }}
7171
</ActionButton>
7272
</template>
@@ -105,7 +105,7 @@
105105
{{ t('deck', 'No notifications') }}
106106
</ActionButton>
107107
</template>
108-
<ActionButton v-else-if="board.acl.length > 0"
108+
<ActionButton v-else-if="!board.archived && board.acl.length > 0"
109109
:title="t('deck', 'Due date reminders')"
110110
:icon="dueDateReminderIcon"
111111
@click="isDueSubmenuActive=true">
@@ -186,7 +186,7 @@ export default {
186186
}
187187
},
188188
canManage() {
189-
return this.board.permissions.PERMISSION_MANAGE && !this.board.archived
189+
return this.board.permissions.PERMISSION_MANAGE
190190
},
191191
dueDateReminderIcon() {
192192
if (this.board.settings['notify-due'] === 'all') {

0 commit comments

Comments
 (0)