org-settings: Fix jquery id selector for join organization settings.

Fixes the id used to select and disable the properties for org
admins on the organization permissions settings tab.
This commit is contained in:
Lauryn Menard 2022-12-08 15:59:19 +01:00 committed by Tim Abbott
parent 214eec007a
commit dfa8ef09d8
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ export function maybe_disable_widgets() {
if (page_params.is_admin) {
$("#deactivate_realm_button").prop("disabled", true);
$("#org-message-retention").find("input, select").prop("disabled", true);
$("#org-join").find("input, select").prop("disabled", true);
$("#org-join-settings").find("input, select").prop("disabled", true);
$("#id_realm_invite_required_label").parent().addClass("control-label-disabled");
return;
}

View File

@ -5,7 +5,7 @@
<div class="subsection-header">
<h3>{{t "Joining the organization" }}</h3>
<i class="fa fa-info-circle settings-info-icon realm_message_retention_tooltip tippy-zulip-tooltip" aria-hidden="true" data-tippy-content="{{t 'Only owners can change these settings.' }}"></i>
{{> settings_save_discard_widget section_name="org-join" }}
{{> settings_save_discard_widget section_name="join-settings" }}
</div>
<div class="m-10 inline-block organization-permissions-parent">
<div class="input-group">