Merge pull request #4461 from MaximKhlobystov/hide-push-notifications-setting

[HTML5] Hide Push Notifications Setting
This commit is contained in:
Anton Georgiev 2017-10-05 16:23:55 -04:00 committed by GitHub
commit 7cd475b2bf

View File

@ -2,12 +2,12 @@ import React from 'react';
import Modal from 'react-modal';
import Icon from '/imports/ui/components/icon/component';
import Button from '/imports/ui/components/button/component';
import BaseMenu from '../base/component';
import ReactDOM from 'react-dom';
import cx from 'classnames';
import styles from '../styles.scss';
import Toggle from '/imports/ui/components/switch/component';
import { defineMessages, injectIntl } from 'react-intl';
import BaseMenu from '../base/component';
import styles from '../styles';
const MIN_FONTSIZE = 0;
const MAX_FONTSIZE = 4;
@ -96,7 +96,8 @@ class ApplicationMenu extends BaseMenu {
const currentFontSize = this.state.settings.fontSize;
const availableFontSizes = this.props.fontSizes;
const canIncreaseFontSize = availableFontSizes.indexOf(currentFontSize) < MAX_FONTSIZE;
const fs = (canIncreaseFontSize) ? availableFontSizes.indexOf(currentFontSize) + 1 : MAX_FONTSIZE;
const fs = (canIncreaseFontSize) ?
availableFontSizes.indexOf(currentFontSize) + 1 : MAX_FONTSIZE;
this.changeFontSize(availableFontSizes[fs]);
}
@ -104,7 +105,8 @@ class ApplicationMenu extends BaseMenu {
const currentFontSize = this.state.settings.fontSize;
const availableFontSizes = this.props.fontSizes;
const canDecreaseFontSize = availableFontSizes.indexOf(currentFontSize) > MIN_FONTSIZE;
const fs = (canDecreaseFontSize) ? availableFontSizes.indexOf(currentFontSize) - 1 : MIN_FONTSIZE;
const fs = (canDecreaseFontSize) ?
availableFontSizes.indexOf(currentFontSize) - 1 : MIN_FONTSIZE;
this.changeFontSize(availableFontSizes[fs]);
}
@ -148,6 +150,7 @@ class ApplicationMenu extends BaseMenu {
</div>
</div>
</div>
{/* TODO: Uncomment after the release
<div className={styles.row}>
<div className={styles.col}>
<div className={styles.formElement} >
@ -167,7 +170,7 @@ class ApplicationMenu extends BaseMenu {
/>
</div>
</div>
</div>
</div>*/}
<div className={styles.row}>
<div className={styles.col}>
<div className={styles.formElement}>