From e49b6a54eb8a117e3a6b318d34c2053a9306c2ba Mon Sep 17 00:00:00 2001 From: Alireza Heidari Date: Fri, 2 Aug 2024 14:26:42 +0200 Subject: [PATCH 01/24] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F:=20add=20`modalShow?= =?UTF-8?q?`=20typing=20in=20`FolderTopBar`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Libraries/LibraryFolder/TopToolbar/FolderTopBar.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/components/Libraries/LibraryFolder/TopToolbar/FolderTopBar.vue b/client/src/components/Libraries/LibraryFolder/TopToolbar/FolderTopBar.vue index bb023fdc3ca2..2730181728e7 100644 --- a/client/src/components/Libraries/LibraryFolder/TopToolbar/FolderTopBar.vue +++ b/client/src/components/Libraries/LibraryFolder/TopToolbar/FolderTopBar.vue @@ -72,7 +72,8 @@ const { datatypes } = useDetailedDatatypes(); const dbKeyStore = useDbKeyStore(); -const modalShow = ref(""); +type ImportSource = "history" | "userdir" | "importdir" | "path" | ""; +const modalShow = ref(); const genomesList = ref([]); const extensionsList = ref([]); const progress = ref(false); @@ -222,7 +223,7 @@ async function importToHistoryModal(isCollection: boolean) { } } -function onAddDatasets(source: string = "") { +function onAddDatasets(source: ImportSource = "") { modalShow.value = source; } From 19a1bae2a1187c836daa87a3056c24299c7f5812 Mon Sep 17 00:00:00 2001 From: Alireza Heidari Date: Fri, 2 Aug 2024 14:28:00 +0200 Subject: [PATCH 02/24] =?UTF-8?q?=E2=9C=A8:=20=20add=20`leaf`,=20`fullPath?= =?UTF-8?q?`,=20and=20`disabled`=20properties=20to=20`FormDrilldown`=20`Op?= =?UTF-8?q?tion`=20interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/Form/Elements/FormDrilldown/utilities.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/components/Form/Elements/FormDrilldown/utilities.ts b/client/src/components/Form/Elements/FormDrilldown/utilities.ts index 22db204189ee..c634dcfc9bd3 100644 --- a/client/src/components/Form/Elements/FormDrilldown/utilities.ts +++ b/client/src/components/Form/Elements/FormDrilldown/utilities.ts @@ -1,6 +1,9 @@ export interface Option { name: string; value: string; + leaf?: boolean; + fullPath?: string; + disabled?: boolean; options: Array