mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-29 03:10:51 +00:00
bulk-operations v0.3 fixed DragUI subtitle for single item , add handle for move item to the same parent
This commit is contained in:
@@ -82,7 +82,10 @@
|
||||
// Prevent empty submit
|
||||
if (! this.selectedFolder) return
|
||||
|
||||
// Move item
|
||||
//Prevent to move items to the same parent
|
||||
if(this.fileInfoDetail.find(item => item.parent_id === this.selectedFolder.unique_id)) return
|
||||
|
||||
// Move item
|
||||
if(!this.noSelectedItem){
|
||||
this.$store.dispatch('moveItem', {to_item:this.selectedFolder ,noSelectedItem: null})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user