Revert "removed backspace functionality for team folder and sharedwithme homepage"

This reverts commit dfeef6fd
This commit is contained in:
Čarodej
2022-03-15 11:21:14 +01:00
parent 806af9da5c
commit 5fa205de27
20 changed files with 61 additions and 61 deletions

View File

@@ -33,7 +33,7 @@ const actions = {
})
// Update user settings
if (!Vue.prototype.$isThisRoute(['Public'])) {
if (!Vue.prototype.$isThisRoute(router.currentRoute, ['Public'])) {
Vue.prototype.$updateText('/user/settings', 'theme_mode', mode)
}
},

View File

@@ -80,7 +80,7 @@ const actions = {
if (item.type === 'folder') dispatch('getAppData')
if (Vue.prototype.$isThisRoute(['Public'])) dispatch('getFolderTree')
if (Vue.prototype.$isThisRoute(router.currentRoute, ['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(['Trash'])
let restoreToHome = Vue.prototype.$isThisRoute(router.currentRoute, ['Trash'])
// If coming no selected item dont get items to restore from clipboard
if (!item) items = getters.clipboard

View File

@@ -90,7 +90,7 @@ const actions = {
// Remove item from file browser
if (
getters.currentFolder &&
Vue.prototype.$isThisRoute(['MySharedItems'])
Vue.prototype.$isThisRoute(router.currentRoute, ['MySharedItems'])
) {
commit('REMOVE_ITEM', item.data.id)
}