Feature #17677, Please provide a loader as feedback when a user leaves a

VRE
master
Massimiliano Assante 5 years ago
parent 0f777c0203
commit 2a59ed00b2

@ -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<String>() {
@Override

Loading…
Cancel
Save