settings: Rename user_display_settings to user_preferences.

Fixes part of zulip#26874.
This commit is contained in:
Jaimin Godhani 2024-08-23 04:55:15 +00:00 committed by Tim Abbott
parent e23d863981
commit 243b57154b
4 changed files with 7 additions and 7 deletions

View File

@ -706,7 +706,7 @@ export function dispatch_normal_event(event) {
break;
}
const user_display_settings = [
const user_preferences = [
"color_scheme",
"web_font_size_px",
"web_line_height_percent",
@ -736,7 +736,7 @@ export function dispatch_normal_event(event) {
];
const original_home_view = user_settings.web_home_view;
if (user_display_settings.includes(event.property)) {
if (user_preferences.includes(event.property)) {
user_settings[event.property] = event.value;
}
if (event.property === "default_language") {

View File

@ -165,7 +165,7 @@ export const twenty_four_hour_time_values = {
export type DisplaySettings = {
settings: {
user_display_settings: string[];
user_preferences: string[];
};
render_group?: boolean;
};
@ -173,7 +173,7 @@ export type DisplaySettings = {
/* istanbul ignore next */
export const information_section_checkbox_group: DisplaySettings = {
settings: {
user_display_settings: [
user_preferences: [
"starred_message_counts",
"receives_typing_notifications",
"fluid_layout_width",
@ -185,7 +185,7 @@ export const information_section_checkbox_group: DisplaySettings = {
export const get_information_density_preferences = (): DisplaySettings => ({
render_group: page_params.development_environment,
settings: {
user_display_settings: ["web_font_size_px", "web_line_height_percent"],
user_preferences: ["web_font_size_px", "web_line_height_percent"],
},
});

View File

@ -36,7 +36,7 @@
<div class="information-density-settings">
<div class="title">{{t "Information density settings"}}</div>
{{#each information_density_settings.settings.user_display_settings}}
{{#each information_density_settings.settings.user_preferences}}
{{> settings_numeric_input
setting_name=this
setting_value=(lookup ../settings_object this)

View File

@ -49,7 +49,7 @@
</select>
</div>
{{#each information_section_checkbox_group.settings.user_display_settings}}
{{#each information_section_checkbox_group.settings.user_preferences}}
{{> settings_checkbox
setting_name=this
is_checked=(lookup ../settings_object this)