Skip to content

Commit

Permalink
fix: use observer for total monthly goals (#2954)
Browse files Browse the repository at this point in the history
  • Loading branch information
tugjg committed Oct 3, 2022
1 parent f84584d commit 7555994
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,16 @@ export class DisplayTotalMonthlyGoals extends Feature {
}

invoke() {
this.addToolkitEmberHook('budget/budget-inspector', 'didRender', this.addMonthlyGoalsOverview);
return null;
}

observe(changedNodes) {
if (!this.shouldInvoke()) {
return;
}

if (changedNodes.has('budget-inspector-button')) {
this.addMonthlyGoalsOverview();
}
}
}

0 comments on commit 7555994

Please sign in to comment.