Skip to content

Commit

Permalink
only show unlink if dataset can be unlinked
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwinship committed Aug 26, 2024
1 parent 5d82a80 commit ad8cd72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/webapp/dataset.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@
</div>
<!-- END: LINK -->
<!-- UNLINK -->
<div class="btn-group btn-group-justified" jsf:rendered="#{dataverseSession.user.authenticated and !DatasetPage.workingVersion.deaccessioned and DatasetPage.dataset.released}">
<div class="btn-group btn-group-justified" jsf:rendered="#{dataverseSession.user.authenticated and !DatasetPage.workingVersion.deaccessioned and DatasetPage.dataset.released and !empty DatasetPage.dataset.datasetLinkingDataverses}">
<p:commandLink styleClass="btn btn-default btn-access btn-xs btn-block btn-link-dataset"
action="#{DatasetPage.setShowUnLinkingPopup(true)}"
oncomplete="PF('unlinkDatasetForm').show();"
Expand Down

0 comments on commit ad8cd72

Please sign in to comment.