mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
BUGFIX: regular track option was unavailable (props to @riking)
This commit is contained in:
parent
9313f27a89
commit
9a3c64535b
@ -17,24 +17,21 @@ Discourse.NotificationsButton = Discourse.DropdownButtonView.extend({
|
|||||||
dropDownContent: function() {
|
dropDownContent: function() {
|
||||||
var contents = [], postfix = '';
|
var contents = [], postfix = '';
|
||||||
|
|
||||||
if(this.get('isPrivateMessage')) {
|
if (this.get('isPrivateMessage')) { postfix = '_pm'; }
|
||||||
postfix = '_pm';
|
|
||||||
}
|
|
||||||
|
|
||||||
_.each([
|
_.each([
|
||||||
['WATCHING', 'watching'],
|
['WATCHING', 'watching'],
|
||||||
['TRACKING', 'tracking'],
|
['TRACKING', 'tracking'],
|
||||||
['REGULAR', 'regular'],
|
['REGULAR', 'regular'],
|
||||||
['MUTE', 'muted']
|
['MUTE', 'muted']
|
||||||
], function(pair){
|
], function(pair) {
|
||||||
|
|
||||||
if(pair[1] !== 'regular' && postfix !== 'pm') {
|
if (postfix === '_pm' && pair[1] === 'regular') { return; }
|
||||||
|
|
||||||
contents.push([
|
contents.push([
|
||||||
Discourse.Topic.NotificationLevel[pair[0]],
|
Discourse.Topic.NotificationLevel[pair[0]],
|
||||||
'topic.notifications.' + pair[1] + postfix
|
'topic.notifications.' + pair[1] + postfix
|
||||||
]);
|
]);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return contents;
|
return contents;
|
||||||
|
Loading…
Reference in New Issue
Block a user