diff --git a/frontend/src/components/Header.vue b/frontend/src/components/Header.vue index d9542864..0866fdba 100644 --- a/frontend/src/components/Header.vue +++ b/frontend/src/components/Header.vue @@ -1,5 +1,5 @@ + +
@@ -109,6 +117,9 @@ export default { }, raw () { return `${this.previewUrl}&inline=true` + }, + showMore () { + return this.$store.state.show === 'more' } }, watch: { @@ -189,6 +200,12 @@ export default { return } + }, + openMore () { + this.$store.commit('showHover', 'more') + }, + resetPrompts () { + this.$store.commit('closeHovers') } } } diff --git a/frontend/src/store/getters.js b/frontend/src/store/getters.js index 0f9925f4..11ad60ab 100644 --- a/frontend/src/store/getters.js +++ b/frontend/src/store/getters.js @@ -3,6 +3,7 @@ const getters = { isFiles: state => !state.loading && state.route.name === 'Files', isListing: (state, getters) => getters.isFiles && state.req.isDir, isEditor: (state, getters) => getters.isFiles && (state.req.type === 'text' || state.req.type === 'textImmutable'), + isPreview: state => state.previewMode, selectedCount: state => state.selected.length, progress : state => { if (state.upload.progress.length == 0) {