mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 00:37:44 +08:00
This reverts commit 3eebf8be733065996ff172adbcad85c254048274.
This commit is contained in:
@ -17,20 +17,20 @@ export default NotificationOptionsComponent.extend({
|
||||
return archetype === "private_message" ? "_pm" : "";
|
||||
},
|
||||
|
||||
_changed(msg) {
|
||||
if (this.get("computedValue") !== msg.id) {
|
||||
this.get("topic.details").updateNotifications(msg.id);
|
||||
}
|
||||
},
|
||||
|
||||
@on("didInsertElement")
|
||||
_bindGlobalLevelChanged() {
|
||||
this.appEvents.on("topic-notifications-button:changed", this, "_changed");
|
||||
this.appEvents.on("topic-notifications-button:changed", msg => {
|
||||
if (msg.type === "notification") {
|
||||
if (this.get("computedValue") !== msg.id) {
|
||||
this.get("topic.details").updateNotifications(msg.id);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@on("willDestroyElement")
|
||||
_unbindGlobalLevelChanged() {
|
||||
this.appEvents.off("topic-notifications-button:changed", this, "_changed");
|
||||
this.appEvents.off("topic-notifications-button:changed");
|
||||
},
|
||||
|
||||
mutateValue(value) {
|
||||
|
Reference in New Issue
Block a user