mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
file preview fix
This commit is contained in:
7
resources/js/store/modules/fileFunctions.js
vendored
7
resources/js/store/modules/fileFunctions.js
vendored
@@ -311,6 +311,8 @@ const actions = {
|
||||
|
||||
// Remove file
|
||||
commit('REMOVE_ITEM', data.data.id)
|
||||
commit('REMOVE_ITEM_FROM_CLIPBOARD', data.data.id)
|
||||
events.$emit('file:deleted', data.data.id)
|
||||
|
||||
// Remove item from sidebar
|
||||
if (! ['Public', 'RequestUpload'].includes(router.currentRoute.name)) {
|
||||
@@ -318,11 +320,6 @@ const actions = {
|
||||
}
|
||||
})
|
||||
|
||||
// Remove file preview
|
||||
if (!noSelectedItem) {
|
||||
commit('CLIPBOARD_CLEAR')
|
||||
}
|
||||
|
||||
// Get route
|
||||
let route = {
|
||||
RequestUpload: `/api/upload-request/${router.currentRoute.params.token}/remove`,
|
||||
|
||||
Reference in New Issue
Block a user