Move item grid to folder bug

This commit is contained in:
Čarodej
2022-04-06 15:22:09 +02:00
parent 4ae4e70fe4
commit 9a11af3b39
13 changed files with 66 additions and 69 deletions

View File

@@ -96,7 +96,7 @@ export default {
// Move item
this.$store.dispatch('moveItem', {
to_item: this.selectedFolder,
noSelectedItem: this.isSelectedItem ? this.pickedItem : null,
item: this.isSelectedItem ? this.pickedItem : undefined,
})
// Close popup

View File

@@ -108,7 +108,7 @@ export default {
if (!this.clipboard.includes(this.draggedItem[0])) {
this.$store.dispatch('moveItem', {
to_item: this.nodes,
noSelectedItem: this.draggedItem[0],
item: this.draggedItem[0],
})
}
@@ -116,7 +116,7 @@ export default {
if (this.clipboard.includes(this.draggedItem[0])) {
this.$store.dispatch('moveItem', {
to_item: this.nodes,
noSelectedItem: null,
item: null,
})
}