diff --git a/client/components/common/page-selector.vue b/client/components/common/page-selector.vue
index 9a4c48e7..4473881b 100644
--- a/client/components/common/page-selector.vue
+++ b/client/components/common/page-selector.vue
@@ -1,7 +1,7 @@
v-dialog(v-model='isShown', max-width='850px')
v-card.page-selector
- .dialog-header.is-dark
+ .dialog-header.is-blue
v-icon.mr-3(color='white') mdi-page-next-outline
.body-1 Select Page Location
v-spacer
@@ -15,45 +15,53 @@
.d-flex(style='min-height:400px;')
v-flex.grey(xs4, :class='darkMode ? `darken-4` : `lighten-3`')
v-toolbar(color='grey darken-3', dark, dense, flat)
- .body-2 Folders
- //- v-spacer
- //- v-btn(icon): v-icon create_new_folder
+ .body-2 Virtual Folders
+ v-spacer
+ v-btn(icon, tile)
+ v-icon mdi-help-box
v-treeview(
- v-model='tree'
- :items='treeFolders'
+ :active.sync='currentNode'
+ :open.sync='openNodes'
+ :items='tree'
:load-children='fetchFolders'
+ dense
+ expand-icon='mdi-menu-down-outline'
+ item-id='path'
+ item-text='title'
activatable
- open-on-click
hoverable
)
template(slot='prepend', slot-scope='{ item, open, leaf }')
v-icon mdi-{{ open ? 'folder-open' : 'folder' }}
v-flex(xs8)
- v-toolbar(color='grey darken-2', dark, dense, flat)
+ v-toolbar(color='blue darken-2', dark, dense, flat)
.body-2 Pages
v-spacer
- v-btn(icon): v-icon mdi-forward
- v-btn(icon): v-icon mdi-delete
- v-list(dense)
- v-list-item
- v-list-item-icon: v-icon mdi-file-document-box
- v-list-item-title File A
- v-divider
- v-list-item
- v-list-item-icon: v-icon mdi-file-document-box
- v-list-item-title File B
- v-divider
- v-list-item
- v-list-item-icon: v-icon mdi-file-document-box
- v-list-item-title File C
- v-divider
- v-list-item
- v-list-item-icon: v-icon mdi-file-document-box
- v-list-item-title File D
- v-card-actions.grey.pa-2(:class='darkMode ? `darken-3-d5` : `lighten-1`')
+ v-btn(icon, tile): v-icon mdi-content-save-move-outline
+ v-btn(icon, tile): v-icon mdi-trash-can-outline
+ v-list.py-0(dense, v-if='currentPages.length > 0')
+ v-list-item-group(
+ v-model='currentPage'
+ color='primary'
+ )
+ template(v-for='(page, idx) of currentPages')
+ v-list-item(:key='page.id', :value='page.path')
+ v-list-item-icon: v-icon mdi-file-document-box
+ v-list-item-title {{page.title}}
+ v-divider(v-if='idx < pages.length - 1')
+ v-alert.animated.fadeIn(
+ v-else
+ text
+ color='orange'
+ prominent
+ icon='mdi-alert'
+ )
+ .body-2 This folder is empty.
+ v-card-actions.grey.pa-2(:class='darkMode ? `darken-2` : `lighten-1`')
v-select(
solo
dark
+ flat
background-color='grey darken-3-d2'
hide-details
single-line
@@ -62,6 +70,7 @@
v-model='currentLocale'
)
v-text-field(
+ ref='pathIpt'
solo
hide-details
prefix='/'
@@ -73,13 +82,15 @@
v-card-chin
v-spacer
v-btn(text, @click='close') Cancel
- v-btn.px-4(color='primary', @click='open')
+ v-btn.px-4(color='primary', @click='open', :disabled='!isValidPath')
v-icon(left) mdi-check
span Select