diff --git a/src/App.vue b/src/App.vue
index c5237165f..dfc2ff2fe 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -26,7 +26,14 @@
-
+
+
+
+
+
+
+
+
@@ -34,6 +41,7 @@
import { mapState } from 'vuex'
import AppNavigation from './components/navigation/AppNavigation'
+import { Modal } from '@nextcloud/vue'
import { BoardApi } from './services/BoardApi'
const boardApi = new BoardApi()
@@ -42,6 +50,7 @@ export default {
name: 'App',
components: {
AppNavigation,
+ Modal,
},
data() {
return {
@@ -67,6 +76,7 @@ export default {
navShown: state => state.navShown,
sidebarShownState: state => state.sidebarShown,
currentBoard: state => state.currentBoard,
+ cardDetailsInModal: state => state.cardDetailsInModal,
}),
// TODO: properly handle sidebar showing for route subview and board sidebar
sidebarRouterView() {
@@ -77,15 +87,20 @@ export default {
return this.sidebarRouterView || this.sidebarShownState
},
},
+ created() {
+ this.$store.dispatch('loadBoards')
+ this.$store.dispatch('loadSharees')
+ },
+ methods: {
+ hideModal() {
+ this.$store.dispatch('setCardDetailsInModal', false)
+ },
+ },
provide() {
return {
boardApi,
}
},
- created() {
- this.$store.dispatch('loadBoards')
- this.$store.dispatch('loadSharees')
- },
}
@@ -124,4 +139,13 @@ export default {
.multiselect {
width: 100%;
}
+
+ .modal__content {
+ width: 800px;
+ height: 600px;
+ min-width: 450px;
+ min-height: 450px;
+ margin: 20px 20px 60px 20px;
+ padding-bottom: 20px;
+ }
diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue
index 575c13b06..4a0819243 100644
--- a/src/components/card/CardSidebar.vue
+++ b/src/components/card/CardSidebar.vue
@@ -27,139 +27,17 @@
:title-editable.sync="titleEditable"
@update:title="updateTitle"
@close="closeSidebar">
-
+
+
+ {{ t('deck', 'Open in bigger view') }}
+
+
+
-
-
- {{ t('deck', 'Tags') }}
-
-
-
-
-
- {{ scope.option.title }}
-
-
-
-
- {{ scope.option.title }}
-
-
-
-
-
-
-
-
- {{ t('deck', 'Assign to users/groups/circles') }}
-
-
-
-
-
-
- {{ t('deck', 'Due date') }}
-
-
-
-
-
- {{ t('deck', 'Remove due date') }}
-
-
-
-
-
-
-
-
-
-
- {{ t('deck', 'Description') }}
- {{ t('deck', '(Unsaved)') }}
- {{ t('deck', '(Saving…)') }}
-
-
-
- {{ t('deck', 'Edit description') }}
-
-
- {{ t('deck', 'View description') }}
-
-
-
-
- {{ t('deck', 'Add Attachment') }}
-
-
-
-
-
-
+
-
-
-
{{ t('deck', 'Choose attachment') }}
-
-
-
diff --git a/src/components/card/CardSidebarTabDetails.vue b/src/components/card/CardSidebarTabDetails.vue
new file mode 100644
index 000000000..ad317b1be
--- /dev/null
+++ b/src/components/card/CardSidebarTabDetails.vue
@@ -0,0 +1,613 @@
+
+
+
+
+
+
+ {{ t('deck', 'Tags') }}
+
+
+
+
+
+ {{ scope.option.title }}
+
+
+
+
+ {{ scope.option.title }}
+
+
+
+
+
+
+
+
+ {{ t('deck', 'Assign to users/groups/circles') }}
+
+
+
+
+
+
+ {{ t('deck', 'Due date') }}
+
+
+
+
+
+ {{ t('deck', 'Remove due date') }}
+
+
+
+
+
+
+
+
+
+
+ {{ t('deck', 'Description') }}
+ {{ t('deck', '(Unsaved)') }}
+ {{ t('deck', '(Saving…)') }}
+
+
+
+ {{ t('deck', 'Edit description') }}
+
+
+ {{ t('deck', 'View description') }}
+
+
+
+
+ {{ t('deck', 'Add Attachment') }}
+
+
+
+
+
+
+
+
+
+
{{ t('deck', 'Choose attachment') }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/store/main.js b/src/store/main.js
index 901f36922..6ac19b188 100644
--- a/src/store/main.js
+++ b/src/store/main.js
@@ -59,6 +59,7 @@ export default new Vuex.Store({
showArchived: false,
navShown: true,
compactMode: localStorage.getItem('deck.compactMode') === 'true',
+ cardDetailsInModal: false,
sidebarShown: false,
currentBoard: null,
currentCard: null,
@@ -202,6 +203,9 @@ export default new Vuex.Store({
state.compactMode = !state.compactMode
localStorage.setItem('deck.compactMode', state.compactMode)
},
+ setCardDetailsInModal(state, show) {
+ state.cardDetailsInModal = show
+ },
setBoards(state, boards) {
state.boards = boards
},
@@ -276,6 +280,7 @@ export default new Vuex.Store({
Vue.delete(state.currentBoard.acl, removeIndex)
}
},
+
},
actions: {
setFilter({ commit }, filter) {
@@ -389,6 +394,9 @@ export default new Vuex.Store({
toggleCompactMode({ commit }) {
commit('toggleCompactMode')
},
+ setCardDetailsInModal({ commit }, show) {
+ commit('setCardDetailsInModal', show)
+ },
setCurrentBoard({ commit }, board) {
commit('setCurrentBoard', board)
},