solved issues: FullFilePreview menu , MultiSelected move action ; refactoring contextMenu

This commit is contained in:
Milos Holba
2020-12-20 16:41:30 +01:00
parent 00213824f1
commit e6ff90f6fc
13 changed files with 529 additions and 556 deletions

View File

@@ -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)