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