feat: download shared subdirectory (#1184)
Co-authored-by: Oleg Lobanov <oleg@lobanov.me>
This commit is contained in:
@@ -4,6 +4,7 @@ const getters = {
|
||||
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,
|
||||
isSharing: state => !state.loading && state.route.name === 'Share',
|
||||
selectedCount: state => state.selected.length,
|
||||
progress : state => {
|
||||
if (state.upload.progress.length == 0) {
|
||||
|
||||
@@ -24,7 +24,8 @@ const state = {
|
||||
showShell: false,
|
||||
showMessage: null,
|
||||
showConfirm: null,
|
||||
previewMode: false
|
||||
previewMode: false,
|
||||
hash: ''
|
||||
}
|
||||
|
||||
export default new Vuex.Store({
|
||||
|
||||
@@ -86,7 +86,8 @@ const mutations = {
|
||||
},
|
||||
setPreviewMode(state, value) {
|
||||
state.previewMode = value
|
||||
}
|
||||
},
|
||||
setHash: (state, value) => (state.hash = value),
|
||||
}
|
||||
|
||||
export default mutations
|
||||
|
||||
Reference in New Issue
Block a user