From 2a59ed00b213cae4902cc7abe102b066927141e2 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Wed, 16 Oct 2019 16:58:44 +0200 Subject: [PATCH] Feature #17677, Please provide a loader as feedback when a user leaves a VRE --- .../portlets/user/gcubeloggedin/client/ui/AboutView.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/gcubeloggedin/client/ui/AboutView.java b/src/main/java/org/gcube/portlets/user/gcubeloggedin/client/ui/AboutView.java index 4a470df..4c9106d 100644 --- a/src/main/java/org/gcube/portlets/user/gcubeloggedin/client/ui/AboutView.java +++ b/src/main/java/org/gcube/portlets/user/gcubeloggedin/client/ui/AboutView.java @@ -34,6 +34,7 @@ public class AboutView extends Composite { private static String SEE_MORE = "See more"; private Button leaveVreButton = new Button("Leave Group"); private AlertBlock alertBlockOnLeave = new AlertBlock(); + private AlertBlock infoBlock = new AlertBlock(); // more options label to show the other ones (if present) final Button showMoreOptions = new Button("Other options ..."); private static final String leaveAlertMessage = "Are you sure you want to leave this group? " @@ -181,9 +182,11 @@ public class AboutView extends Composite { @Override public void onClick(ClickEvent event){ - alertBlockOnLeave.clear(); - alertBlockOnLeave.setHeading("Operation in progress!"); - alertBlockOnLeave.setHTML("please wait ..."); + infoBlock.setType(AlertType.INFO); + infoBlock.setHeading("Operation in progress!"); + infoBlock.setHTML("please wait ..."); + leaveVREOption.remove(alertBlockOnLeave); + leaveVREOption.add(infoBlock); service.removeUserFromVRE(new AsyncCallback() { @Override