Skip to content

Commit

Permalink
♻️ Enable autologout and delegate features when logout
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltomasik committed Aug 29, 2018
1 parent 92b7243 commit 2447fe8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/components/setting/setting.js
Expand Up @@ -83,11 +83,10 @@ class Setting extends React.Component {
}
</div>
<div className={styles.item}>
<label className={`${allowAuthClass}`}>{t('Auto-logout')}</label>
<label>{t('Auto-logout')}</label>
<Checkbox
theme={styles}
disabled={!this.props.isAuthenticated}
className={`${styles.smallSlider} autoLog ${allowAuthClass}`}
className={`${styles.smallSlider} autoLog`}
onChange={() => this.toggleAutoLog(!settings.autoLog)}
input={{
value: true,
Expand All @@ -110,11 +109,10 @@ class Setting extends React.Component {
{t('You will be able to select the desired network when signing in')}
</div>
<div className={styles.item}>
<label className={`${allowAuthClass}`}>{t('Delegate features')}</label>
<label>{t('Delegate features')}</label>
<Checkbox
theme={styles}
disabled={!this.props.isAuthenticated}
className={`${styles.smallSlider} advancedMode ${allowAuthClass}`}
className={`${styles.smallSlider} advancedMode`}
onChange={() => settingsUpdated({ advancedMode: !settings.advancedMode })}
input={{
value: true,
Expand Down

0 comments on commit 2447fe8

Please sign in to comment.