mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
paginator refactoring and implementation into the routes
This commit is contained in:
6
resources/js/store/modules/fileFunctions.js
vendored
6
resources/js/store/modules/fileFunctions.js
vendored
@@ -342,14 +342,14 @@ const actions = {
|
||||
},
|
||||
emptyTrash: ({ commit, getters }) => {
|
||||
// Clear file browser
|
||||
commit('LOADING_STATE', { loading: true, data: [] })
|
||||
commit('START_LOADING_VIEW')
|
||||
|
||||
axios
|
||||
.post(getters.api + '/trash/dump', {
|
||||
_method: 'delete',
|
||||
})
|
||||
.then(() => {
|
||||
commit('LOADING_STATE', { loading: false, data: [] })
|
||||
commit('STOP_LOADING_VIEW')
|
||||
events.$emit('scrollTop')
|
||||
|
||||
commit('CLIPBOARD_CLEAR')
|
||||
@@ -363,7 +363,7 @@ const actions = {
|
||||
})
|
||||
.then(() => {
|
||||
if (router.currentRoute.name === 'Trash') {
|
||||
commit('LOADING_STATE', { loading: false, data: [] })
|
||||
commit('STOP_LOADING_VIEW')
|
||||
}
|
||||
|
||||
events.$emit('toaster', {
|
||||
|
||||
Reference in New Issue
Block a user