You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
remove SettingsFlag manualSave altogether
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -30,7 +30,6 @@ module.exports = createReactClass({
|
|||||||
label: PropTypes.string, // untranslated
|
label: PropTypes.string, // untranslated
|
||||||
onChange: PropTypes.func,
|
onChange: PropTypes.func,
|
||||||
isExplicit: PropTypes.bool,
|
isExplicit: PropTypes.bool,
|
||||||
manualSave: PropTypes.bool,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
@@ -47,7 +46,7 @@ module.exports = createReactClass({
|
|||||||
onChange: function(checked) {
|
onChange: function(checked) {
|
||||||
if (this.props.group && !checked) return;
|
if (this.props.group && !checked) return;
|
||||||
|
|
||||||
if (!this.props.manualSave) this.save(checked);
|
this.save(checked);
|
||||||
this.setState({ value: checked });
|
this.setState({ value: checked });
|
||||||
if (this.props.onChange) this.props.onChange(checked);
|
if (this.props.onChange) this.props.onChange(checked);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user