mirror of https://github.com/zulip/zulip.git
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:
parent
e6e806f656
commit
30fc4f7832
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue