Add a button to the modal to switch back to the sidebar view
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
committed by
Julius Härtl
parent
e9a6c585b9
commit
71a35a9cf8
@@ -93,7 +93,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
hideModal() {
|
hideModal() {
|
||||||
// this.$store.dispatch('setCardDetailsInModal', false)
|
|
||||||
this.$router.push({ name: 'board' })
|
this.$router.push({ name: 'board' })
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -26,9 +26,14 @@
|
|||||||
:subtitle="subtitle"
|
:subtitle="subtitle"
|
||||||
:title-editable.sync="titleEditable"
|
:title-editable.sync="titleEditable"
|
||||||
@update:title="updateTitle"
|
@update:title="updateTitle"
|
||||||
|
:class="{ 'app-sidebar-modal': cardDetailsInModal}"
|
||||||
@close="closeSidebar">
|
@close="closeSidebar">
|
||||||
<template #secondary-actions>
|
<template #secondary-actions>
|
||||||
<ActionButton icon="icon-external" @click.stop="showModal()">
|
<ActionButton v-if="cardDetailsInModal" icon="icon-menu-sidebar" @click.stop="showModal()">
|
||||||
|
{{ t('deck', 'Open in sidebar view') }}
|
||||||
|
</ActionButton>
|
||||||
|
|
||||||
|
<ActionButton v-else icon="icon-external" @click.stop="showModal()">
|
||||||
{{ t('deck', 'Open in bigger view') }}
|
{{ t('deck', 'Open in bigger view') }}
|
||||||
</ActionButton>
|
</ActionButton>
|
||||||
</template>
|
</template>
|
||||||
@@ -140,6 +145,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
currentBoard: state => state.currentBoard,
|
currentBoard: state => state.currentBoard,
|
||||||
|
cardDetailsInModal: state => state.cardDetailsInModal,
|
||||||
}),
|
}),
|
||||||
...mapGetters(['canEdit', 'assignables']),
|
...mapGetters(['canEdit', 'assignables']),
|
||||||
attachments() {
|
attachments() {
|
||||||
@@ -384,6 +390,12 @@ export default {
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.app-sidebar-modal {
|
||||||
|
border-left: 0;
|
||||||
|
width: 800px;
|
||||||
|
max-width: 780px;
|
||||||
|
top: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
h5 {
|
h5 {
|
||||||
border-bottom: 1px solid var(--color-border);
|
border-bottom: 1px solid var(--color-border);
|
||||||
|
|||||||
Reference in New Issue
Block a user