mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
remove SettingsFlag manualSave altogether
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
685c2f494a
commit
0d42b8629e
1 changed files with 1 additions and 2 deletions
|
@ -30,7 +30,6 @@ module.exports = createReactClass({
|
|||
label: PropTypes.string, // untranslated
|
||||
onChange: PropTypes.func,
|
||||
isExplicit: PropTypes.bool,
|
||||
manualSave: PropTypes.bool,
|
||||
},
|
||||
|
||||
getInitialState: function() {
|
||||
|
@ -47,7 +46,7 @@ module.exports = createReactClass({
|
|||
onChange: function(checked) {
|
||||
if (this.props.group && !checked) return;
|
||||
|
||||
if (!this.props.manualSave) this.save(checked);
|
||||
this.save(checked);
|
||||
this.setState({ value: checked });
|
||||
if (this.props.onChange) this.props.onChange(checked);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue