mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
models: Replace allow_community_topic_editing with edit_topic_policy.
This commit replaces the allow_community_topic_editing boolean with integer field edit_topic_policy and includes both frontend and backend changes. We also update settings_ui.disable_sub_settings_onchange to not change the color of label as we did previously when the setting was a checkbox. But now as the setting is dropdown we keep the label as it is and we don't do anything with label when disabling dropdowns. Also, this function was used only here so we can safely change this.
This commit is contained in:
@@ -18,9 +18,6 @@ import * as settings_toggle from "./settings_toggle";
|
||||
|
||||
const admin_settings_label = {
|
||||
// Organization settings
|
||||
realm_allow_community_topic_editing: $t({
|
||||
defaultMessage: "Users can edit the topic of any message",
|
||||
}),
|
||||
realm_allow_edit_history: $t({defaultMessage: "Enable message edit history"}),
|
||||
realm_mandatory_topics: $t({defaultMessage: "Require topics in stream messages"}),
|
||||
realm_notifications_stream: $t({defaultMessage: "New stream notifications:"}),
|
||||
@@ -82,7 +79,6 @@ export function build_page() {
|
||||
realm_avatar_changes_disabled: page_params.realm_avatar_changes_disabled,
|
||||
realm_add_emoji_by_admins_only: page_params.realm_add_emoji_by_admins_only,
|
||||
can_add_emojis: settings_emoji.can_add_emoji(),
|
||||
realm_allow_community_topic_editing: page_params.realm_allow_community_topic_editing,
|
||||
realm_message_content_edit_limit_minutes: settings_org.get_realm_time_limits_in_minutes(
|
||||
"realm_message_content_edit_limit_seconds",
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user