Skip to content

Commit 4e1cc09

Browse files
committed
Add a button to the modal to switch back to the sidebar view
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
1 parent 4685ecd commit 4e1cc09

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/components/card/CardSidebar.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
:subtitle="subtitle"
2727
@close="closeSidebar">
2828
<template #secondary-actions>
29-
<ActionButton icon="icon-external" @click.stop="showModal()">
29+
<ActionButton v-if="cardDetailsInModal" icon="icon-menu-sidebar" @click.stop="showModal()">
30+
{{ t('deck', 'Open in sidebar view') }}
31+
</ActionButton>
32+
33+
<ActionButton v-else icon="icon-external" @click.stop="showModal()">
3034
{{ t('deck', 'Open in bigger view') }}
3135
</ActionButton>
3236
</template>
@@ -139,6 +143,7 @@ export default {
139143
computed: {
140144
...mapState({
141145
currentBoard: state => state.currentBoard,
146+
cardDetailsInModal: state => state.cardDetailsInModal,
142147
}),
143148
...mapGetters(['canEdit', 'assignables']),
144149
attachments() {

0 commit comments

Comments
 (0)