From 920c83c4d153bb4b1eef79686701cd087882253b Mon Sep 17 00:00:00 2001 From: CyB3RC0nN0R Date: Sat, 27 Jun 2020 09:48:41 +0200 Subject: [PATCH] Rename groupNameBar to groupNameField --- .../java/envoy/client/ui/controller/GroupCreationScene.java | 6 +++--- src/main/resources/fxml/GroupCreationScene.fxml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/envoy/client/ui/controller/GroupCreationScene.java b/src/main/java/envoy/client/ui/controller/GroupCreationScene.java index f4311aa..c6d7d05 100644 --- a/src/main/java/envoy/client/ui/controller/GroupCreationScene.java +++ b/src/main/java/envoy/client/ui/controller/GroupCreationScene.java @@ -30,7 +30,7 @@ public class GroupCreationScene { private Button createButton; @FXML - private TextField groupNameBar; + private TextField groupNameField; @FXML private ListView contactList; @@ -74,10 +74,10 @@ public class GroupCreationScene { */ @FXML private void createButtonClicked() { - final var name = groupNameBar.getText(); + final var name = groupNameField.getText(); if (!Bounds.isValidContactName(name)) { new Alert(AlertType.ERROR, "The entered group name is not valid (" + Bounds.CONTACT_NAME_PATTERN + ")").showAndWait(); - groupNameBar.clear(); + groupNameField.clear(); } else { eventBus.dispatch(new SendEvent(new GroupCreation(name, contactList.getSelectionModel().getSelectedItems().stream().map(Contact::getID).collect(Collectors.toSet())))); diff --git a/src/main/resources/fxml/GroupCreationScene.fxml b/src/main/resources/fxml/GroupCreationScene.fxml index 9fbdc92..7987a63 100644 --- a/src/main/resources/fxml/GroupCreationScene.fxml +++ b/src/main/resources/fxml/GroupCreationScene.fxml @@ -14,7 +14,7 @@ - +