Update client/src/main/java/envoy/client/ui/controller/GroupCreationScene.java
Co-authored-by: CyB3RC0nN0R <kske@outlook.de>
This commit is contained in:
parent
a17ce52bfa
commit
fa8872ccba
@ -115,7 +115,7 @@ public class GroupCreationScene {
|
||||
new Alert(AlertType.ERROR, "The entered group name is not valid (" + Bounds.CONTACT_NAME_PATTERN + ")").showAndWait();
|
||||
groupNameField.getTextField().clear();
|
||||
} else if (groupNameAlreadyPresent(name)) {
|
||||
final var alert = new Alert(AlertType.WARNING, "You already have a group with that name.", ButtonType.OK, ButtonType.CANCEL);
|
||||
final var alert = new Alert(AlertType.WARNING, "You already have a group with that name.", ButtonType.OK, ButtonType.CANCEL);
|
||||
alert.setTitle("Create Group?");
|
||||
alert.setHeaderText("Proceed?");
|
||||
alert.showAndWait().filter(btn -> btn == ButtonType.OK).ifPresent(btn -> createGroup(name));
|
||||
|
Reference in New Issue
Block a user