Revert "DEV: Upgrade to Ember 3.7.0 (#6977)" (#7165)

This reverts commit 3eebf8be733065996ff172adbcad85c254048274.
This commit is contained in:
Roman Rizzi
2019-03-13 15:49:47 -03:00
committed by GitHub
parent 4178578e09
commit 77931b70c3
33 changed files with 152 additions and 214 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", 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) {