From 4db5e901b544014cedfe7a15c6a324afc507501e Mon Sep 17 00:00:00 2001 From: somnetsak123 Date: Tue, 12 Dec 2023 17:18:04 +0700 Subject: [PATCH 1/2] fix: show errorDialog delete folder --- Services/client/src/stores/storage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/client/src/stores/storage.ts b/Services/client/src/stores/storage.ts index 174346b..735cd51 100644 --- a/Services/client/src/stores/storage.ts +++ b/Services/client/src/stores/storage.ts @@ -285,7 +285,7 @@ const useStorage = defineStore('storageStore', () => { ) } - if (currentInfo.path.includes(arr[arr.length - 1])) { + if (currentInfo.path !== path && currentInfo.path.startsWith(path)) { error.title = 'ตำเเหน่งที่คุณอยู่ถูกลบ' error.msg = '' error.show() From 265d106bfa4b3de34f6b9e9dab444a6523a58222 Mon Sep 17 00:00:00 2001 From: somnetsak123 Date: Tue, 12 Dec 2023 17:32:25 +0700 Subject: [PATCH 2/2] fix:delete create Folder duplicate --- Services/client/src/stores/storage.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Services/client/src/stores/storage.ts b/Services/client/src/stores/storage.ts index 735cd51..e2012d4 100644 --- a/Services/client/src/stores/storage.ts +++ b/Services/client/src/stores/storage.ts @@ -214,12 +214,7 @@ const useStorage = defineStore('storageStore', () => { createdAt: data.createdAt, createdBy: data.createdBy, }) - } else { - error.title = 'ตั้งชื่อ Folder ซ้ำ' - error.msg = '' - error.show() } - folder.value[path].sort((a, b) => a.pathname.localeCompare(b.pathname)) } },