mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
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.
11 lines
314 B
Handlebars
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>
|