zulip/web/templates/settings/admin_auth_methods_list.hbs
Sahil Batra 671547345d settings: Refactor code to handle realm authentication methods.
This commit refactors code to handle realm authentication methods
in a better way. We remove the get_complete_data_for_subsection
function and instead let populate_data_for_request handle the
request data for authentication methods.

We also remove the "prop-element" class from each authentication
setting checkbox and instead add it to the container div as a
the list of those checkboxes represent a single field, i.e.
the realm_authentication_methods field received from the server
and the authentication_methods field sent to 'PATCH /realm'
endpoint.
2024-05-28 10:44:15 -07:00

11 lines
314 B
Handlebars

<div class="method_row" data-method="{{method}}">
{{> settings_checkbox
setting_name="realm_authentication_methods"
prefix=prefix
is_checked=enabled
label=method
is_disabled=disable_configure_auth_method
tooltip_text=unavailable_reason
skip_prop_element=true}}
</div>