Skip to content

Commit

Permalink
Private URL: call setPrivateUrlJustCreatedToFalse on close #3174 #1012
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Jun 24, 2016
1 parent 2c80313 commit f515e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/webapp/dataset.xhtml
Expand Up @@ -651,8 +651,8 @@
<div class="button-block">
<p:commandButton styleClass="btn btn-default" value="#{bundle['dataset.privateurl.createPrivateUrl']}" action="#{DatasetPage.createPrivateUrl()}" update="privateUrlPanel,:messagePanel" rendered="#{empty(DatasetPage.privateUrl)}" />
<p:commandButton styleClass="btn btn-default" value="#{bundle['dataset.privateurl.disablePrivateUrl']}" action="#{DatasetPage.setPrivateUrlJustCreatedToFalse()}" onclick="PF('privateUrlConfirmation').hide();PF('disablePrivateUrlConfirmation').show()" rendered="#{!empty(DatasetPage.privateUrl)}" update="privateUrlPanel"/>
<!--FIXME: Why isn't DatasetPage.setPrivateUrlJustCreatedToFalse being called by this close button?!? Works fine on the "Disable Private URL" button above.-->
<p:commandButton styleClass="btn btn-default" value="#{bundle.close}" action="#{DatasetPage.setPrivateUrlJustCreatedToFalse()}" onclick="PF('privateUrlConfirmation').hide();PF('blockDatasetForm').hide();" type="button" update="privateUrlPanel"/>
<!--FIXME: Clicking the "Close" button here successfully sets privateUrlWasJustCreated but clicking the "X" in the upper right corner of the Bootstrap modal does not.-->
<p:commandButton styleClass="btn btn-default" value="#{bundle.close}" action="#{DatasetPage.setPrivateUrlJustCreatedToFalse()}" onclick="PF('privateUrlConfirmation').hide();PF('blockDatasetForm').hide();" update="privateUrlPanel"/>
</div>
</p:fragment>
<p:fragment id="privateUrlPanelCannotCreate" rendered="#{!DatasetPage.userCanCreatePrivateURL}">
Expand Down

0 comments on commit f515e4b

Please sign in to comment.