mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-12 17:26:17 +00:00
AutoUpdate is auto saved
This commit is contained in:
committed by
Junyoung Choi
parent
ef20a8f3e5
commit
2df590600b
@@ -41,6 +41,7 @@ class InfoTab extends React.Component {
|
||||
}
|
||||
|
||||
this.setState({ config: newConfig })
|
||||
return newConfig
|
||||
}
|
||||
|
||||
handleSubscriptionFormSubmit(e) {
|
||||
@@ -118,6 +119,12 @@ class InfoTab extends React.Component {
|
||||
return amaMessage ? <p styleName='policy-confirm'>{amaMessage}</p> : null
|
||||
}
|
||||
|
||||
handleAutoUpdateChange() {
|
||||
const config = this.handleConfigChange()
|
||||
|
||||
ConfigManager.set(config)
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div styleName='root'>
|
||||
@@ -259,7 +266,7 @@ class InfoTab extends React.Component {
|
||||
<input
|
||||
type='checkbox'
|
||||
ref='autoUpdateEnabled'
|
||||
onChange={() => this.handleConfigChange()}
|
||||
onChange={() => this.handleAutoUpdateChange()}
|
||||
checked={this.state.config.autoUpdateEnabled}
|
||||
/>
|
||||
{i18n.__('Enable Auto Update')}
|
||||
|
||||
Reference in New Issue
Block a user