PPushRules settings: Fixed React warnings
parent
ee13dd7b6c
commit
6d510db2db
|
@ -77,7 +77,6 @@ module.exports = React.createClass({
|
||||||
MatrixClientPeg.get().setPushRuleEnabled('global', rule.rule.kind, rule.rule.rule_id, (newPushRuleState !== PushRuleState.OFF)).done(function() {
|
MatrixClientPeg.get().setPushRuleEnabled('global', rule.rule.kind, rule.rule.rule_id, (newPushRuleState !== PushRuleState.OFF)).done(function() {
|
||||||
|
|
||||||
self._refreshFromServer();
|
self._refreshFromServer();
|
||||||
self.forceUpdate();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -191,15 +190,15 @@ module.exports = React.createClass({
|
||||||
self.setState({
|
self.setState({
|
||||||
phase: self.phases.DISPLAY
|
phase: self.phases.DISPLAY
|
||||||
});
|
});
|
||||||
|
|
||||||
self.forceUpdate();
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
renderNotifRulesTableRow: function(title, className, pushRuleState, disabled) {
|
renderNotifRulesTableRow: function(title, className, pushRuleState, disabled) {
|
||||||
return (
|
return (
|
||||||
<tr key = {className}>
|
<tr key = {className}>
|
||||||
<th class="">{title}</th>
|
<th>
|
||||||
|
{title}
|
||||||
|
</th>
|
||||||
|
|
||||||
<th>
|
<th>
|
||||||
<input className= {className + "-" + PushRuleState.ON}
|
<input className= {className + "-" + PushRuleState.ON}
|
||||||
|
|
Loading…
Reference in New Issue