Skip to content

Commit

Permalink
#3758 Only show preview tab if on current version of DS
Browse files Browse the repository at this point in the history
  • Loading branch information
sekmiller committed Oct 31, 2019
1 parent 7f95cd2 commit e253843
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/webapp/file.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@
</p:tab>


<p:tab id="previewTab" title="#{bundle['file.previewTab.header']}" rendered="#{FilePage.publiclyDownloadable and (FilePage.toolsWithPreviews.size() > 0) and fileDownloadHelper.canDownloadFile(FilePage.fileMetadata)}">
<p:tab id="previewTab" title="#{bundle['file.previewTab.header']}" rendered="#{FilePage.publiclyDownloadable and (FilePage.toolsWithPreviews.size() > 0) and fileDownloadHelper.canDownloadFile(FilePage.fileMetadata)
and FilePage.fileMetadata.datasetVersion == FilePage.fileMetadata.datasetVersion.dataset.latestVersion}">
<!-- Add external tools as an inner tab with buttons to full tool-->
<!-- Preview Button Group -->
<div>
Expand Down

0 comments on commit e253843

Please sign in to comment.