Manage Group UI + backend implemented.

This commit is contained in:
Asal Lotfi
2025-09-07 15:58:12 +03:30
parent 5f84e6af55
commit 1835ebdc97
10 changed files with 517 additions and 17 deletions
@@ -110,8 +110,10 @@ public class NewGroupController {
new Thread(() -> {
JSONObject resp = ActionHandler.sendWithResponse(req);
if (resp == null || !"success".equalsIgnoreCase(resp.optString("status"))) {
Platform.runLater(() -> showToast("Create failed: " +
(resp == null ? "no response" : resp.optString("message",""))));
Platform.runLater(() -> {
groupIdField.getStyleClass().add("error");
groupIdLabel.getStyleClass().add("error");
});
return;
}
@@ -182,7 +184,4 @@ public class NewGroupController {
a.initOwner(overlayRoot.getScene().getWindow());
a.show();
}
}