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

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