mirror of https://github.com/zulip/zulip.git
buddy_list: Make avatar display option only visible in dev.
This commit is contained in:
parent
99856327f0
commit
2b636e64ec
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue