Skip to content

Commit 378f4bb

Browse files
committed
PushRules settings: Display keywords in alphabetical order
1 parent 0577edb commit 378f4bb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/components/views/settings/Notifications.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ module.exports = React.createClass({
5959
};
6060
},
6161

62-
keywordsDialogDiv: "",
63-
newKeywords: undefined,
64-
6562
componentWillMount: function() {
6663
this._refreshFromServer();
6764
},
@@ -170,7 +167,6 @@ module.exports = React.createClass({
170167

171168
onKeywordsClicked: function(event) {
172169
var self = this;
173-
this.newKeywords = undefined;
174170

175171
// Compute the keywords list to display
176172
var keywords = [];
@@ -179,6 +175,10 @@ module.exports = React.createClass({
179175
keywords.push(rule.pattern);
180176
}
181177
if (keywords.length) {
178+
// As keeping the order of per-word push rules hs side is a bit tricky to code,
179+
// display the keywords in alphabetical order to the user
180+
keywords.sort();
181+
182182
keywords = keywords.join(", ");
183183
}
184184
else {

0 commit comments

Comments
 (0)