From 1cf9952bcd802112121ae7dac747e5bbd873fdbe Mon Sep 17 00:00:00 2001 From: Moises Baltazar Date: Wed, 21 Apr 2021 12:12:51 -0500 Subject: [PATCH] Add ability to toggle zip mode --- src/views/Options.vue | 40 ++++++++++++++++++++++++++++++++++++++++ src/views/Upload.vue | 3 +-- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/src/views/Options.vue b/src/views/Options.vue index fc4e625..e0fefff 100644 --- a/src/views/Options.vue +++ b/src/views/Options.vue @@ -133,6 +133,45 @@ + +
+ + +
+
+

+ Zip File + + + +

+
+ +
+ + +
+
+ @@ -148,6 +187,7 @@ export default { loadingProjects: false, projectDropdownText: "", uploadType: "single", // or 'mulitple' + zipMode: "zip", // or 'raw' labelsFrom: "user", // or 'dicom' subjectLabel: "", sessionLabel: "" diff --git a/src/views/Upload.vue b/src/views/Upload.vue index ef9dcd1..17a9d71 100644 --- a/src/views/Upload.vue +++ b/src/views/Upload.vue @@ -454,8 +454,7 @@ export default { } let upload_path = this.imageSessions[i].directory; - //TODO: check if zip has been checked - if (true){ + if (settings.get("options.zipMode") == "zip") { upload_path = await zipDirectory_old(upload_path); this.imageSessions[i].directory = upload_path; }