added hide onClick

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@144286 82a268e6-3cf1-43bd-a215-b396298e98cf
task/19600
Francesco Mangiacrapa 7 years ago
parent f87b0b84a3
commit 539b127d10

@ -229,11 +229,12 @@ public class VersioningInfoContainer extends LayoutContainer {
String msg = "Deleting all older versions of: <br/> - "+ currentVersion.getName()+"." +
"<br/>Confirm?";
DialogConfirm box = new DialogConfirm(null, "Delete older versions of: "+ currentVersion.getName(), msg);
final DialogConfirm box = new DialogConfirm(null, "Delete older versions of: "+ currentVersion.getName(), msg);
box.getYesButton().addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
box.hide();
AppController.getEventBus().fireEvent(new FileVersioningEvent(WorkspaceVersioningOperation.DELETE_ALL_OLDER_VERSIONS, currentVersion, store.getModels(), windowVersioning));
}
});

Loading…
Cancel
Save