groups: Disable "Add" button in members list if input is empty.

We previously had code to disable the "Add" button initially but
then we re-enabled it again if user had permission to add members.

We do not need that code to enable/disable the button based on
permission since the button is disabled initially and it is
only enabled when user updates the input which is not allowed
if users is not allowed to add members.
This commit is contained in:
Sahil Batra 2024-02-14 09:29:09 +05:30 committed by Tim Abbott
parent e6e806f656
commit 30fc4f7832
1 changed files with 0 additions and 2 deletions

View File

@ -290,8 +290,6 @@ export function show_settings_for(group) {
$edit_container.show();
show_membership_settings(group);
user_group_components.setup_permissions_dropdown(group, false);
$edit_container.find("button").prop("disabled", !settings_data.can_edit_user_group(group.id));
}
export function setup_group_settings(group) {