refactor: reviewer's comments

- don't pass `closeAccountMenu` to AccountMenu, instead create it in Account menu state and use it
- add event observers as per original code
- move some variables into component's state (even if they don't need to have setters sometimes)
This commit is contained in:
VardanHakobyan
2021-06-08 19:54:14 +04:00
parent ca5811a0f2
commit 3e68f02da0
4 changed files with 127 additions and 80 deletions

View File

@@ -17,7 +17,6 @@
app-state='ctrl.appState'
application='ctrl.application'
ng-if='ctrl.showAccountMenu',
close-account-menu='ctrl.closeAccountMenu()',
)
.sk-app-bar-item
a.no-decoration.sk-label.title(