single file preview in spotlight

This commit is contained in:
Peter Papp
2021-08-10 11:14:04 +02:00
parent 8b360edb2b
commit 843a1bc690
6 changed files with 104 additions and 86 deletions
+7 -2
View File
@@ -11,6 +11,7 @@ const defaultState = {
isLoading: true,
browseHistory: [],
fastPreview: undefined,
clipboard: [],
entries: [],
}
@@ -228,12 +229,16 @@ const mutations = {
CLIPBOARD_CLEAR(state) {
state.clipboard = []
},
CLIPBOARD_REPLACE(state, items) {
state.clipboard = items
ADD_TO_FAST_PREVIEW(state, item) {
state.fastPreview = item
},
FAST_PREVIEW_CLEAR(state) {
state.fastPreview = undefined
},
}
const getters = {
fastPreview: state => state.fastPreview,
clipboard: state => state.clipboard,
currentFolder: state => state.currentFolder,
browseHistory: state => state.browseHistory,