mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 08:16:00 +08:00
DEV: Upgrade to Ember 3.7.0 (#6977)
* Upgrade to Ember 3.7.0 * use ember source 3.7.0.2 * fix mobile header * fix navigation
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", msg => {
|
||||
if (msg.type === "notification") {
|
||||
if (this.get("computedValue") !== msg.id) {
|
||||
this.get("topic.details").updateNotifications(msg.id);
|
||||
}
|
||||
}
|
||||
});
|
||||
this.appEvents.on("topic-notifications-button:changed", this, "_changed");
|
||||
},
|
||||
|
||||
@on("willDestroyElement")
|
||||
_unbindGlobalLevelChanged() {
|
||||
this.appEvents.off("topic-notifications-button:changed");
|
||||
this.appEvents.off("topic-notifications-button:changed", this, "_changed");
|
||||
},
|
||||
|
||||
mutateValue(value) {
|
||||
|
Reference in New Issue
Block a user