Feature #17677, Please provide a loader as feedback when a user leaves a
VRE
This commit is contained in:
parent
0f777c0203
commit
2a59ed00b2
|
@ -34,6 +34,7 @@ public class AboutView extends Composite {
|
||||||
private static String SEE_MORE = "See more";
|
private static String SEE_MORE = "See more";
|
||||||
private Button leaveVreButton = new Button("Leave Group");
|
private Button leaveVreButton = new Button("Leave Group");
|
||||||
private AlertBlock alertBlockOnLeave = new AlertBlock();
|
private AlertBlock alertBlockOnLeave = new AlertBlock();
|
||||||
|
private AlertBlock infoBlock = new AlertBlock();
|
||||||
// more options label to show the other ones (if present)
|
// more options label to show the other ones (if present)
|
||||||
final Button showMoreOptions = new Button("Other options ...");
|
final Button showMoreOptions = new Button("Other options ...");
|
||||||
private static final String leaveAlertMessage = "Are you sure you want to leave this group? "
|
private static final String leaveAlertMessage = "Are you sure you want to leave this group? "
|
||||||
|
@ -181,9 +182,11 @@ public class AboutView extends Composite {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(ClickEvent event){
|
public void onClick(ClickEvent event){
|
||||||
alertBlockOnLeave.clear();
|
infoBlock.setType(AlertType.INFO);
|
||||||
alertBlockOnLeave.setHeading("Operation in progress!");
|
infoBlock.setHeading("Operation in progress!");
|
||||||
alertBlockOnLeave.setHTML("please wait ...");
|
infoBlock.setHTML("please wait ...");
|
||||||
|
leaveVREOption.remove(alertBlockOnLeave);
|
||||||
|
leaveVREOption.add(infoBlock);
|
||||||
|
|
||||||
service.removeUserFromVRE(new AsyncCallback<String>() {
|
service.removeUserFromVRE(new AsyncCallback<String>() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue