mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-29 03:10:51 +00:00
solved issues: FullFilePreview menu , MultiSelected move action ; refactoring contextMenu
This commit is contained in:
+2
-2
@@ -238,7 +238,7 @@ const actions = {
|
||||
let itemsToDelete = []
|
||||
let items = [noSelectedItem]
|
||||
|
||||
//If coming no selected item dont get items to move from fileInfoDetail
|
||||
// If coming no selected item dont get items to move from fileInfoDetail
|
||||
if(!noSelectedItem)
|
||||
items = getters.fileInfoDetail
|
||||
|
||||
@@ -249,7 +249,7 @@ const actions = {
|
||||
"unique_id": data.unique_id
|
||||
})
|
||||
|
||||
// Remove file
|
||||
// Remove file
|
||||
commit('REMOVE_ITEM', data.unique_id)
|
||||
|
||||
// Remove item from sidebar
|
||||
|
||||
+3
-1
@@ -52,6 +52,7 @@ const actions = {
|
||||
let addFavourites = []
|
||||
let items = [folder]
|
||||
|
||||
// If dont coming single folder get folders to add to favourites from fileInfoDetail
|
||||
if(!folder){
|
||||
items = context.getters.fileInfoDetail
|
||||
}
|
||||
@@ -65,13 +66,14 @@ const actions = {
|
||||
}
|
||||
})
|
||||
|
||||
// If dont coming single folder clear the selected folders in fileInfoDetail
|
||||
if(!folder) {
|
||||
context.commit('CLEAR_FILEINFO_DETAIL')
|
||||
}
|
||||
|
||||
let pushToFavorites = []
|
||||
|
||||
//Check is favorites already don't include some of pushed folders
|
||||
// Check is favorites already don't include some of pushed folders
|
||||
items.map(data => {
|
||||
if(!context.getters.user.relationships.favourites.data.attributes.folders.find(folder => folder.unique_id === data.unique_id)){
|
||||
pushToFavorites.push(data)
|
||||
|
||||
Reference in New Issue
Block a user