From 29de9b346a3aa6c098b1671df68aa284833c7b71 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 3 Nov 2022 12:10:59 +0100 Subject: [PATCH] Fix moving resources Signed-off-by: Thomas Citharel --- js/package.json | 2 +- js/src/components/Resource/DraggableList.vue | 2 +- js/src/components/Resource/FolderItem.vue | 19 ++-- .../components/Resource/ResourceSelector.vue | 101 ++++++++++-------- js/src/types/resource.ts | 2 +- js/src/views/Resources/ResourceFolder.vue | 5 +- js/yarn.lock | 14 +-- 7 files changed, 82 insertions(+), 63 deletions(-) diff --git a/js/package.json b/js/package.json index dc220ef5..52295be7 100644 --- a/js/package.json +++ b/js/package.json @@ -87,7 +87,7 @@ "vue-router": "4", "vue-scrollto": "^2.17.1", "vue-use-route-query": "^1.1.0", - "vuedraggable": "^4.1.0" + "zhyswan-vuedraggable": "^4.1.3" }, "devDependencies": { "@histoire/plugin-vue": "^0.11.0", diff --git a/js/src/components/Resource/DraggableList.vue b/js/src/components/Resource/DraggableList.vue index 2b66b280..9eaee7fd 100644 --- a/js/src/components/Resource/DraggableList.vue +++ b/js/src/components/Resource/DraggableList.vue @@ -75,7 +75,7 @@ import ResourceItem from "@/components/Resource/ResourceItem.vue"; import FolderItem from "@/components/Resource/FolderItem.vue"; import { ref, watch } from "vue"; import { IResource } from "@/types/resource"; -import Draggable from "vuedraggable"; +import Draggable from "zhyswan-vuedraggable"; import { IGroup } from "@/types/actor"; const props = withDefaults( diff --git a/js/src/components/Resource/FolderItem.vue b/js/src/components/Resource/FolderItem.vue index d8a56782..af0129b8 100644 --- a/js/src/components/Resource/FolderItem.vue +++ b/js/src/components/Resource/FolderItem.vue @@ -26,7 +26,11 @@ :sort="false" :group="groupObject" @change="onChange" - /> + > + +