mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +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 })
|
this.setState({ config: newConfig })
|
||||||
|
return newConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSubscriptionFormSubmit(e) {
|
handleSubscriptionFormSubmit(e) {
|
||||||
@@ -118,6 +119,12 @@ class InfoTab extends React.Component {
|
|||||||
return amaMessage ? <p styleName='policy-confirm'>{amaMessage}</p> : null
|
return amaMessage ? <p styleName='policy-confirm'>{amaMessage}</p> : null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handleAutoUpdateChange() {
|
||||||
|
const config = this.handleConfigChange()
|
||||||
|
|
||||||
|
ConfigManager.set(config)
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div styleName='root'>
|
<div styleName='root'>
|
||||||
@@ -259,7 +266,7 @@ class InfoTab extends React.Component {
|
|||||||
<input
|
<input
|
||||||
type='checkbox'
|
type='checkbox'
|
||||||
ref='autoUpdateEnabled'
|
ref='autoUpdateEnabled'
|
||||||
onChange={() => this.handleConfigChange()}
|
onChange={() => this.handleAutoUpdateChange()}
|
||||||
checked={this.state.config.autoUpdateEnabled}
|
checked={this.state.config.autoUpdateEnabled}
|
||||||
/>
|
/>
|
||||||
{i18n.__('Enable Auto Update')}
|
{i18n.__('Enable Auto Update')}
|
||||||
|
|||||||
Reference in New Issue
Block a user