Skip to content

Commit

Permalink
fix: observe accounts toolbar instead of hooking it (#2942)
Browse files Browse the repository at this point in the history
  • Loading branch information
williammck committed Sep 23, 2022
1 parent 108dcb2 commit efad533
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ export class ToggleTransactionFilters extends Feature {
return true;
}

invoke() {
this.addToolkitEmberHook('accounts/account-header', 'didRender', this.injectButtons);
observe(changedNodes) {
if (!this.shouldInvoke()) return;

if (changedNodes.has('accounts-toolbar')) {
this.injectButtons($('.accounts-toolbar'));
}
}

injectCSS() {
Expand Down

0 comments on commit efad533

Please sign in to comment.