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:
Maja Komel
2019-03-13 12:16:06 +01:00
committed by GitHub
parent d4d67386c9
commit 3eebf8be73
33 changed files with 214 additions and 152 deletions

View File

@ -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) {