Skip to content

Commit

Permalink
Add ability to toggle zip mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mobalt committed Apr 21, 2021
1 parent 9d4d6f5 commit 1cf9952
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
40 changes: 40 additions & 0 deletions src/views/Options.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,45 @@
</div>
</div>
</div>

<hr />


<div class="uk-grid">
<div class="uk-width-1-2 uk-text-right">
<h4>
Zip File
<a
uk-tooltip="pos:right"
title="Aspera, the technology used by this program, works best with large files. Depending on how your DICOM files are generated, you might experience faster speeds if zip everything into a single large file first."
>
<i class="fa fa-question-circle-o" aria-hidden="true"></i>
</a>
</h4>
</div>

<div class="uk-width-1-2">
<label class="radio">
<input
type="radio"
name="zipMode"
value="zip"
v-model="zipMode"
/>
Single Zip-File
</label>
<label class="radio">
<input
type="radio"
name="zipMode"
value="raw"
v-model="zipMode"
/>
Raw DICOM files
</label>
</div>
</div>

</div>
</template>

Expand All @@ -148,6 +187,7 @@ export default {
loadingProjects: false,
projectDropdownText: "",
uploadType: "single", // or 'mulitple'
zipMode: "zip", // or 'raw'
labelsFrom: "user", // or 'dicom'
subjectLabel: "",
sessionLabel: ""
Expand Down
3 changes: 1 addition & 2 deletions src/views/Upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1cf9952

Please sign in to comment.