PPushRules settings: Fixed React warnings

pull/641/head
manuroe 2016-01-11 17:32:37 +01:00
parent ee13dd7b6c
commit 6d510db2db
2 changed files with 4 additions and 5 deletions

View File

@ -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}