reorder the push settings as off, on, loud - fixes https://github.com/vector-im/vector-web/issues/1117

pull/1191/head
Matthew Hodgson 2016-03-17 02:24:48 +00:00
parent f8fb3a7fe1
commit cddfa62e27
1 changed files with 10 additions and 10 deletions

View File

@ -28,13 +28,13 @@ var Modal = require('matrix-react-sdk/lib/Modal');
* @enum {string}
*/
var PushRuleVectorState = {
/** The push rule is disabled */
OFF: "off",
/** The user will receive push notification for this rule */
ON: "on",
/** The user will receive push notification for this rule with sound and
highlight if this is legitimate */
LOUD: "loud",
/** The push rule is disabled */
OFF: "off"
};
// Encodes a dictionary of {
@ -840,6 +840,13 @@ module.exports = React.createClass({
{title}
</th>
<th>
<input className= {className + "-" + PushRuleVectorState.OFF}
type="radio"
checked={ pushRuleVectorState === PushRuleVectorState.OFF }
onChange={ this.onNotifStateButtonClicked } />
</th>
<th>
<input className= {className + "-" + PushRuleVectorState.ON}
type="radio"
@ -853,13 +860,6 @@ module.exports = React.createClass({
checked={ pushRuleVectorState === PushRuleVectorState.LOUD }
onChange={ this.onNotifStateButtonClicked } />
</th>
<th>
<input className= {className + "-" + PushRuleVectorState.OFF}
type="radio"
checked={ pushRuleVectorState === PushRuleVectorState.OFF }
onChange={ this.onNotifStateButtonClicked } />
</th>
</tr>
);
},
@ -997,9 +997,9 @@ module.exports = React.createClass({
<thead>
<tr>
<th width="55%"></th>
<th width="15%">Off</th>
<th width="15%">On</th>
<th width="15%">Loud</th>
<th width="15%">Off</th>
</tr>
</thead>
<tbody>