mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 11:00:39 +00:00
empty page refactored
This commit is contained in:
Vendored
-3
@@ -7,7 +7,6 @@ const defaultState = {
|
||||
FilePreviewType: localStorage.getItem('preview_type') || 'list',
|
||||
config: undefined,
|
||||
index: undefined,
|
||||
homeDirectory: undefined,
|
||||
requestedPlan: undefined,
|
||||
emojis: undefined,
|
||||
sorting: {
|
||||
@@ -1029,7 +1028,6 @@ const mutations = {
|
||||
},
|
||||
INIT(state, data) {
|
||||
state.config = data.config
|
||||
state.homeDirectory = data.rootDirectory
|
||||
},
|
||||
SET_SAAS(state, data) {
|
||||
state.config.isSaaS = data
|
||||
@@ -1064,7 +1062,6 @@ const getters = {
|
||||
teamPermissions: state => state.teamPermissions,
|
||||
FilePreviewType: state => state.FilePreviewType,
|
||||
expirationList: state => state.expirationList,
|
||||
homeDirectory: state => state.homeDirectory,
|
||||
requestedPlan: state => state.requestedPlan,
|
||||
currencyList: state => state.currencyList,
|
||||
countries: state => state.countries,
|
||||
|
||||
-2
@@ -9,7 +9,6 @@ const defaultState = {
|
||||
fastPreview: undefined,
|
||||
navigation: undefined,
|
||||
isLoading: true,
|
||||
browseHistory: [],
|
||||
clipboard: [],
|
||||
entries: [],
|
||||
}
|
||||
@@ -189,7 +188,6 @@ const mutations = {
|
||||
|
||||
const getters = {
|
||||
currentFolder: state => state.currentFolder,
|
||||
browseHistory: state => state.browseHistory,
|
||||
fastPreview: state => state.fastPreview,
|
||||
navigation: state => state.navigation,
|
||||
clipboard: state => state.clipboard,
|
||||
|
||||
+2
-2
@@ -333,9 +333,9 @@ const actions = {
|
||||
if (data.id === getters.currentFolder.id) {
|
||||
|
||||
if (getters.currentFolder.location === 'public') {
|
||||
dispatch('browseShared', [{folder: last(getters.browseHistory), back: true, init: false}])
|
||||
dispatch('browseShared')
|
||||
} else {
|
||||
dispatch('getFolder', [{folder: last(getters.browseHistory), back: true, init: false}])
|
||||
dispatch('getFolder')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user