Add setting to toggle between the modal and the sidebar
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -52,6 +52,13 @@
|
||||
<template #footer>
|
||||
<AppNavigationSettings>
|
||||
<div>
|
||||
<input id="toggle-modal"
|
||||
v-model="cardDetailsInModal"
|
||||
type="checkbox"
|
||||
class="checkbox">
|
||||
<label for="toggle-modal">
|
||||
{{ t('deck', 'Use modal card view') }}
|
||||
</label>
|
||||
<Multiselect v-model="groupLimit"
|
||||
:class="{'icon-loading-small': groupLimitDisabled}"
|
||||
open-direction="bottom"
|
||||
@@ -119,6 +126,14 @@ export default {
|
||||
// eslint-disable-next-line
|
||||
return OC.isUserAdmin()
|
||||
},
|
||||
cardDetailsInModal: {
|
||||
get() {
|
||||
return this.$store.getters.cardDetailsInModal
|
||||
},
|
||||
set(newValue) {
|
||||
this.$store.dispatch('setCardDetailsInModal', newValue)
|
||||
},
|
||||
},
|
||||
},
|
||||
beforeMount() {
|
||||
if (this.isAdmin) {
|
||||
|
||||
Reference in New Issue
Block a user