Group info UI + backend implemented.

This commit is contained in:
Asal Lotfi
2025-09-07 10:35:56 +03:30
parent f79eeb2086
commit 5f84e6af55
18 changed files with 638 additions and 32 deletions
@@ -63,7 +63,7 @@ public class NewChannelController {
createButton.setOnAction(e -> onCreateChannel());
// محدودیت توضیح
// Limit description
final int MAX_LENGTH = 255;
channelDescField.addEventFilter(javafx.scene.input.KeyEvent.KEY_TYPED, e -> {
if (channelDescField.getText().length() >= MAX_LENGTH) e.consume();
@@ -79,7 +79,7 @@ public class NewChannelController {
});
descCounter.setText("0 / 255");
// پاک کردن استایل خطا هنگام تایپ
// Reset error when user types again
channelNameField.textProperty().addListener((obs, ov, nv) -> {
if (!nv.trim().isEmpty()) {
channelNameField.getStyleClass().remove("error");