Partially revert 92118dd1d1
.
This commit is contained in:
parent
a1b8a3b52b
commit
e4d557cdb9
|
@ -15,5 +15,6 @@ export default MountWidget.extend({
|
|||
|
||||
didInsertElement() {
|
||||
this._super();
|
||||
this.dispatch('topic-notifications-button:changed', 'topic-notifications-button');
|
||||
}
|
||||
});
|
||||
|
|
|
@ -91,7 +91,9 @@ export default createWidget('topic-notifications-button', {
|
|||
topicNotificationsButtonChanged(msg) {
|
||||
switch(msg.type) {
|
||||
case 'notification':
|
||||
this.notificationLevelChanged(msg.id);
|
||||
if (this.attrs.topic.get('details.notification_level') !== msg.id) {
|
||||
this.notificationLevelChanged(msg.id);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue