Skip to content

Commit

Permalink
Merge pull request #4797 from IQSS/4796-no-download-original-when-not…
Browse files Browse the repository at this point in the history
…-available

Hides the "download the original" when the saved original is not avai…
  • Loading branch information
kcondon authored Jun 29, 2018
2 parents 8074e6d + b811f1d commit a3f09c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/webapp/file-download-button-fragment.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,15 @@
<li role="presentation" class="divider"></li>
</ui:remove>
<li>
<p:commandLink rendered="#{!downloadPopupRequired}"
<p:commandLink rendered="#{!downloadPopupRequired and !(fileMetadata.dataFile.originalFormatLabel == 'UNKNOWN')}"
process="@this"
disabled="#{(fileMetadata.dataFile.ingestInProgress or lockedFromDownload) ? 'disabled' : ''}"
actionListener="#{fileDownloadService.startFileDownload(guestbookResponse, fileMetadata, 'original')}">
<h:outputFormat value="#{bundle['file.downloadBtn.format.original']}">
<f:param value="#{fileMetadata.dataFile.originalFormatLabel}"/>
</h:outputFormat>
</p:commandLink>
<p:commandLink rendered="#{downloadPopupRequired}"
<p:commandLink rendered="#{downloadPopupRequired and !(fileMetadata.dataFile.originalFormatLabel == 'UNKNOWN')}"
process="@this"
disabled="#{(fileMetadata.dataFile.ingestInProgress or lockedFromDownload) ? 'disabled' : ''}"
action="#{guestbookResponseService.modifyDatafileAndFormat(guestbookResponse, fileMetadata, 'original' )}"
Expand Down

0 comments on commit a3f09c6

Please sign in to comment.