mirror of https://github.com/zulip/zulip.git
eed0a14ab0
This commit adds save-discard widget in the realm-level defaults section. We use most of the functions used in settings_org.js by passing for_realm_default_settings and add conditionals according to it. Some of the major changes wrt to the organzation settings code are - - We use element name attribute here to get the setting name from element instead of id. We can add id for the elements here but there is a problem doing so for the emojiset setting as for the radio buttons we use four different input elements and all being for the same setting. - Added separate cases in discard_property_element_changes and get_input_element_value to handle the radio buttons. - We do not need get_complete_data_for_subsection here because all settings are controlled by single field in DB and single element in UI and thus we can simply get changed setting values from populate_data_for_request. - Added org-subsection-parent to the subsection container and prop-element to the input and select elements so that we can use the existing code. - Modified get_subsection_property_elements to just return the input element which is selected for emoji-settings subsection and not all the input elements because we only need the selected value of emojiset. We need other elements also when discarding the changes but we handle it separately. |
||
---|---|---|
.. | ||
account_settings.hbs | ||
admin_auth_methods_list.hbs | ||
admin_bot_form.hbs | ||
admin_default_streams_list.hbs | ||
admin_emoji_list.hbs | ||
admin_export_list.hbs | ||
admin_human_form.hbs | ||
admin_invites_list.hbs | ||
admin_linkifier_edit_form.hbs | ||
admin_linkifier_list.hbs | ||
admin_playground_list.hbs | ||
admin_profile_field_list.hbs | ||
admin_realm_domains_list.hbs | ||
admin_settings_modals.hbs | ||
admin_tab.hbs | ||
admin_user_group_list.hbs | ||
admin_user_list.hbs | ||
alert_word_settings.hbs | ||
alert_word_settings_item.hbs | ||
api_key_modal.hbs | ||
attachments_settings.hbs | ||
auth_methods_settings_admin.hbs | ||
bot_avatar_row.hbs | ||
bot_list_admin.hbs | ||
bot_settings.hbs | ||
custom_user_profile_field.hbs | ||
data_exports_admin.hbs | ||
deactivated_users_admin.hbs | ||
default_streams_list_admin.hbs | ||
dev_env_email_access.hbs | ||
display_settings.hbs | ||
dropdown_list.hbs | ||
dropdown_list_widget.hbs | ||
dropdown_options_widget.hbs | ||
edit_bot.hbs | ||
edit_embedded_bot_service.hbs | ||
edit_outgoing_webhook_service.hbs | ||
emoji_settings_admin.hbs | ||
emoji_settings_tip.hbs | ||
image_upload_widget.hbs | ||
invites_list_admin.hbs | ||
linkifier_settings_admin.hbs | ||
muted_topics_settings.hbs | ||
muted_users_settings.hbs | ||
notification_settings.hbs | ||
notification_settings_checkboxes.hbs | ||
organization_permissions_admin.hbs | ||
organization_profile_admin.hbs | ||
organization_settings_admin.hbs | ||
organization_settings_tip.hbs | ||
organization_user_settings_defaults.hbs | ||
playground_settings_admin.hbs | ||
profile_field_choice.hbs | ||
profile_field_settings_admin.hbs | ||
profile_settings.hbs | ||
realm_domains_modal.hbs | ||
settings_checkbox.hbs | ||
settings_save_discard_widget.hbs | ||
stream_specific_notification_row.hbs | ||
upgrade_tip_widget.hbs | ||
upload_space_stats.hbs | ||
uploaded_files_list.hbs | ||
user_display_settings.hbs | ||
user_groups_admin.hbs | ||
user_list_admin.hbs | ||
user_notification_settings.hbs |