Skip to content

Commit

Permalink
Hides the "download the original" when the saved original is not avai…
Browse files Browse the repository at this point in the history
…lable.
  • Loading branch information
landreev committed Jun 28, 2018
1 parent 2c41710 commit b811f1d
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 b811f1d

Please sign in to comment.