mirror of
https://github.com/discourse/discourse.git
synced 2025-03-02 01:09:26 +00:00
FIX: Don't leak event listeners in user-activity-drafts (#8682)
This commit is contained in:
parent
cf60de59b1
commit
502f154cfc
@ -12,9 +12,16 @@ export default DiscourseRoute.extend({
|
||||
|
||||
setupController(controller, model) {
|
||||
controller.set("model", model);
|
||||
},
|
||||
|
||||
activate() {
|
||||
this.appEvents.on("draft:destroyed", this, this.refresh);
|
||||
},
|
||||
|
||||
deactivate() {
|
||||
this.appEvents.off("draft:destroyed", this, this.refresh);
|
||||
},
|
||||
|
||||
actions: {
|
||||
didTransition() {
|
||||
this.controllerFor("user-activity")._showFooter();
|
||||
|
Loading…
x
Reference in New Issue
Block a user