You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "CREATED" status should prevent user download / notify user why they can't download (#175)
* Disable the "Download" button for files that have a status of CREATED
* Add a banner to call more attention that the file is in-transit
* Disable per-File Download button on Dataset and Folder views when file is only CREATED
Co-authored-by: Luigi Marini <[email protected]>
<buttonid="downloadButton" type="button" onclick="return downloadFile();" class="btn btn-link" title="Download and enjoy this file."><spanclass="glyphicon glyphicon-save"></span>
336
+
@if(file.status == "CREATED") {
337
+
<!-- if 'disabled' title is not visible -->
338
+
<buttontype="button" class="btn btn-link disabled" title="Please wait for the file to finish processing."><spanclass="glyphicon glyphicon-save"></span>
<buttontype="button" class="btn btn-link disabled" title="You don't have permission to download this file."><spanclass="glyphicon glyphicon-save"></span>
325
-
Download </button>
343
+
<buttontype="button" class="btn btn-link disabled" title="You don't have permission to download this file."><spanclass="glyphicon glyphicon-save"></span>
344
+
Download </button>
345
+
} else {
346
+
<buttonid="downloadButton" type="button" onclick="return downloadFile();" class="btn btn-link" title="Download and enjoy this file."><spanclass="glyphicon glyphicon-save"></span>
<buttonid="downloadButton" onclick="window.open(jsRoutes.api.Files.download('@file.id').url, '_blank');" class="btn btn-link" title="Download and enjoy this file.">
<buttonid="downloadButton" onclick="window.open(jsRoutes.api.Files.download('@file.id').url, '_blank');" class="btn btn-link" title="Download and enjoy this file.">
0 commit comments