buddy_list: Make avatar display option only visible in dev.

This commit is contained in:
evykassirer 2024-10-31 16:20:46 -07:00 committed by Tim Abbott
parent 99856327f0
commit 2b636e64ec
1 changed files with 20 additions and 4 deletions

View File

@ -68,7 +68,20 @@ export const web_channel_default_view_values = {
}, },
}; };
export const user_list_style_values = { export const user_list_style_values: {
compact: {
code: number;
description: string;
};
with_status: {
code: number;
description: string;
};
with_avatar?: {
code: number;
description: string;
};
} = {
compact: { compact: {
code: 1, code: 1,
description: $t({defaultMessage: "Compact"}), description: $t({defaultMessage: "Compact"}),
@ -77,11 +90,14 @@ export const user_list_style_values = {
code: 2, code: 2,
description: $t({defaultMessage: "Show status text"}), description: $t({defaultMessage: "Show status text"}),
}, },
with_avatar: { };
if (page_params.development_environment) {
user_list_style_values.with_avatar = {
code: 3, code: 3,
description: $t({defaultMessage: "Show avatar"}), description: $t({defaultMessage: "Show avatar"}),
}, };
}; }
export const web_animate_image_previews_values = { export const web_animate_image_previews_values = {
always: { always: {