mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
removed backspace functionality for team folder and sharedwithme homepage
This commit is contained in:
2
resources/js/store/modules/app.js
vendored
2
resources/js/store/modules/app.js
vendored
@@ -33,7 +33,7 @@ const actions = {
|
||||
})
|
||||
|
||||
// Update user settings
|
||||
if (!Vue.prototype.$isThisRoute(router.currentRoute, ['Public'])) {
|
||||
if (!Vue.prototype.$isThisRoute(['Public'])) {
|
||||
Vue.prototype.$updateText('/user/settings', 'theme_mode', mode)
|
||||
}
|
||||
},
|
||||
|
||||
4
resources/js/store/modules/fileFunctions.js
vendored
4
resources/js/store/modules/fileFunctions.js
vendored
@@ -80,7 +80,7 @@ const actions = {
|
||||
|
||||
if (item.type === 'folder') dispatch('getAppData')
|
||||
|
||||
if (Vue.prototype.$isThisRoute(router.currentRoute, ['Public'])) dispatch('getFolderTree')
|
||||
if (Vue.prototype.$isThisRoute(['Public'])) dispatch('getFolderTree')
|
||||
})
|
||||
})
|
||||
.catch(() => Vue.prototype.$isSomethingWrong())
|
||||
@@ -272,7 +272,7 @@ const actions = {
|
||||
restoreItem: ({ commit, getters }, item) => {
|
||||
let itemToRestore = []
|
||||
let items = [item]
|
||||
let restoreToHome = Vue.prototype.$isThisRoute(router.currentRoute, ['Trash'])
|
||||
let restoreToHome = Vue.prototype.$isThisRoute(['Trash'])
|
||||
|
||||
// If coming no selected item dont get items to restore from clipboard
|
||||
if (!item) items = getters.clipboard
|
||||
|
||||
2
resources/js/store/modules/sharing.js
vendored
2
resources/js/store/modules/sharing.js
vendored
@@ -90,7 +90,7 @@ const actions = {
|
||||
// Remove item from file browser
|
||||
if (
|
||||
getters.currentFolder &&
|
||||
Vue.prototype.$isThisRoute(router.currentRoute, ['MySharedItems'])
|
||||
Vue.prototype.$isThisRoute(['MySharedItems'])
|
||||
) {
|
||||
commit('REMOVE_ITEM', item.data.id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user