fix lint
pull/737/head
Audric Ackermann 5 years ago committed by GitHub
commit e653ed4dad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -907,17 +907,17 @@
};
window.toggleMenuBar = () => {
const newValue = ! window.getSettingValue('hide-menu-bar');
const newValue = !window.getSettingValue('hide-menu-bar');
window.Events.setHideMenuBar(newValue);
};
window.toggleSpellCheck = () => {
const newValue = ! window.getSettingValue('spell-check');
const newValue = !window.getSettingValue('spell-check');
window.Events.setSpellCheck(newValue);
};
window.toggleLinkPreview = () => {
const newValue = ! window.getSettingValue('link-preview-setting');
const newValue = !window.getSettingValue('link-preview-setting');
window.Events.setLinkPreviewSetting(newValue);
};

@ -1176,7 +1176,6 @@ button.module-scroll-down {
}
}
.standalone {
.button {
background: $session-color-green;

@ -127,9 +127,8 @@ export class LeftPaneSettingSection extends React.Component<any, State> {
iconSize={SessionIconSize.Huge}
/>
</SessionButton>
</div>
</div>
</div>
</div>
);
}

@ -172,7 +172,6 @@ export class SessionPasswordModal extends React.Component<Props, State> {
}
private closeDialog() {
if (this.props.onClose) {
this.props.onClose();
}

@ -99,9 +99,9 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
const description = setting.description || '';
const comparisonValue = setting.comparisonValue || null;
const value =
const value =
window.getSettingValue(setting.id, comparisonValue) ||
setting.content && setting.content.defaultValue;
(setting.content && setting.content.defaultValue);
const sliderFn =
setting.type === SessionSettingType.Slider
@ -115,7 +115,6 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
this.updateSetting(setting);
});
return (
<div key={setting.id}>
{shouldRenderSettings &&
@ -150,7 +149,6 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
);
}
public setOptionsSetting(settingID: string) {
const selectedValue = $(`#${settingID} .session-radio input:checked`).val();
window.setSettingValue(settingID, selectedValue);
@ -175,7 +173,7 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
if (item.type === SessionSettingType.Toggle) {
// If no custom afterClick function given, alter values in storage here
// Switch to opposite state
const newValue = ! window.getSettingValue(item.id);
const newValue = !window.getSettingValue(item.id);
window.setSettingValue(item.id, newValue);
}
}
@ -275,7 +273,8 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
content: {
options: {
group: 'notification-setting',
initalItem: window.getSettingValue('notification-setting') || 'message',
initalItem:
window.getSettingValue('notification-setting') || 'message',
items: [
{
label: window.i18n('nameAndMessage'),

@ -61,12 +61,13 @@ export class SettingsHeader extends React.Component<SettingsViewProps, any> {
return (
<div className="session-settings-header">
<div className="session-settings-header-title">{categoryTitle}</div>
{showSearch && <SessionIconButton
iconType={SessionIconType.Search}
iconSize={SessionIconSize.Huge}
onClick={this.focusSearch}
/>
}
{showSearch && (
<SessionIconButton
iconType={SessionIconType.Search}
iconSize={SessionIconSize.Huge}
onClick={this.focusSearch}
/>
)}
{showAddDevice && (
<SessionButton
text={window.i18n('linkNewDevice')}

Loading…
Cancel
Save