diff --git a/web/src/settings_components.ts b/web/src/settings_components.ts index 81cc70333a..7ed1b1be73 100644 --- a/web/src/settings_components.ts +++ b/web/src/settings_components.ts @@ -478,7 +478,6 @@ const dropdown_widget_map = new Map([ ["realm_default_code_block_language", null], ["can_remove_subscribers_group", null], ["realm_can_access_all_users_group", null], - ["realm_can_add_custom_emoji_group", null], ["realm_can_create_web_public_channel_group", null], ["realm_can_delete_any_message_group", null], ["realm_can_delete_own_message_group", null], @@ -795,7 +794,6 @@ export function check_realm_settings_property_changed(elem: HTMLElement): boolea case "realm_zulip_update_announcements_stream_id": case "realm_default_code_block_language": case "realm_can_access_all_users_group": - case "realm_can_add_custom_emoji_group": case "realm_can_create_web_public_channel_group": case "realm_can_delete_any_message_group": case "realm_can_delete_own_message_group": @@ -803,6 +801,7 @@ export function check_realm_settings_property_changed(elem: HTMLElement): boolea case "realm_can_move_messages_between_topics_group": proposed_val = get_dropdown_list_widget_setting_value($elem); break; + case "realm_can_add_custom_emoji_group": case "realm_can_create_groups": case "realm_can_create_public_channel_group": case "realm_can_create_private_channel_group": @@ -1469,6 +1468,7 @@ export const group_setting_widget_map = new Map ../dropdown_widget_with_label - widget_name="realm_can_add_custom_emoji_group" - label=(t 'Who can add custom emoji') - value_type="number"}} + {{> group_setting_value_pill_input + setting_name="realm_can_add_custom_emoji_group" + label=(t 'Who can add custom emoji')}}