bulk-operations v0.1 adding Drag & Drop for moving items to navigations folders, add folders to favourites

This commit is contained in:
Milos Holba
2020-11-20 17:54:39 +01:00
parent 9d9e07d0fa
commit a3dd817e7a
19 changed files with 323 additions and 166 deletions

View File

@@ -8,7 +8,6 @@ import { Store } from 'vuex'
const actions = {
moveItem: ({commit, getters, dispatch}, {to_item ,noSelectedItem}) => {
let itemsToMove = []
let items = [noSelectedItem]
@@ -25,6 +24,11 @@ const actions = {
})
})
// Remove file preview
if(!noSelectedItem){
commit('CLEAR_FILEINFO_DETAIL')
}
// Get route
let route = getters.sharedDetail && ! getters.sharedDetail.protected
? '/api/move/public' + router.currentRoute.params.token