mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +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:
@@ -26,7 +26,7 @@ import {events} from '@/bus'
|
||||
return this.fileInfoDetail.length + ' ' + this.$tc('file_detail.items', this.fileInfoDetail.length)
|
||||
}
|
||||
|
||||
if((this.fileInfoDetail.length < 2 || !this.fileInfoDetail.includes(this.draggedItem)) && this.draggedItem ) {
|
||||
if((this.fileInfoDetail.length < 2 || !this.fileInfoDetail.includes(this.draggedItem)) && this.draggedItem && this.draggedItem.mimetype) {
|
||||
return '.'+this.draggedItem.mimetype
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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