Partially revert 92118dd1d1.

This commit is contained in:
Guo Xiang Tan 2017-05-17 21:42:31 +08:00
parent a1b8a3b52b
commit e4d557cdb9
2 changed files with 4 additions and 1 deletions

View File

@ -15,5 +15,6 @@ export default MountWidget.extend({
didInsertElement() {
this._super();
this.dispatch('topic-notifications-button:changed', 'topic-notifications-button');
}
});

View File

@ -91,7 +91,9 @@ export default createWidget('topic-notifications-button', {
topicNotificationsButtonChanged(msg) {
switch(msg.type) {
case 'notification':
if (this.attrs.topic.get('details.notification_level') !== msg.id) {
this.notificationLevelChanged(msg.id);
}
break;
}
}