add slider title to message.json

pull/905/head
Brian Jian Zhao 6 years ago
parent cb7289d3d8
commit a80c6e30e2

@ -1471,6 +1471,10 @@
"Warning! Lowering the TTL could result in messages being lost if the recipient doesn't collect them in time!", "Warning! Lowering the TTL could result in messages being lost if the recipient doesn't collect them in time!",
"description": "Warning for the time to live setting" "description": "Warning for the time to live setting"
}, },
"zoomFactorSettingTitle": {
"message": "Zoom Factor",
"description": "Title of the Zoom Factor setting"
},
"notificationSettingsDialog": { "notificationSettingsDialog": {
"message": "When messages arrive, display notifications that reveal...", "message": "When messages arrive, display notifications that reveal...",
"description": "Explain the purpose of the notification settings" "description": "Explain the purpose of the notification settings"

@ -114,7 +114,7 @@ export class SessionSettingListItem extends React.Component<Props, State> {
min={60} min={60}
max={200} max={200}
defaultValue={currentSliderValue} defaultValue={currentSliderValue}
onAfterChange={sliderValue => { onChange={sliderValue => {
this.handleSlider(sliderValue); this.handleSlider(sliderValue);
}} }}
/> />

@ -474,7 +474,7 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
{ {
id: 'zoom-factor-setting', id: 'zoom-factor-setting',
title: window.i18n('zoomFactorSettingTitle'), title: window.i18n('zoomFactorSettingTitle'),
description: window.i18n('zoomFactorSettingTitleDescription'), description: undefined,
hidden: false, hidden: false,
type: SessionSettingType.Slider, type: SessionSettingType.Slider,
category: SessionSettingCategory.Appearance, category: SessionSettingCategory.Appearance,

Loading…
Cancel
Save