psitransfer
psitransfer copied to clipboard
Feature Request : Hide zip download button when only one file
When viewing downloads with only one file, it is ideal to hide bulk download buttons as it is unnecessary, also might not confuse users that it is the "download" button.
I echo this idea. At a minimum, a "Direct Download" button could be added!
As an alternative, adding this one line to div.pull-right.btn-group
table section in Download.vue
would make the option explicit per file:
a.btn.btn-sm.btn-default(:title="$root.lang.preview", @click="download(file)")
icon(name="download")
Additionally, the icon for the ZIP download could be changed to file-archive
and the icon for copy to clipboard could be changed to link
instead so their actions are clearer.
I do wish for a way to either completely hide or conditionally hide the ZIP/TAR buttons especially if (1) there's only one file or (2) any file is too big. Ideally, this is configurable but anyway to customize this would be swell.
Added Direct Download Button here: https://github.com/Alkl58/psitransfer/commit/65ee888137c4ba040fdd152d265b7b38efa9dc40 Added Hide ZIP / TAR Button when only one file here: https://github.com/Alkl58/psitransfer/commit/8fd28ede124492926ea7e89e07b7ff8d0457c0ca
Hoping this will be merged to main branch.