refactor: migrate account-menu to react - implement functionality

- link the new React component to the app's store
- setup correct initial values
- small fixes
This commit is contained in:
VardanHakobyan
2021-05-28 19:25:44 +04:00
parent e18f410fd2
commit 1194c73c49
3 changed files with 360 additions and 307 deletions

View File

@@ -18,7 +18,11 @@
ng-if='ctrl.showAccountMenu',
application='ctrl.application'
)
account-menu2()
account-menu2(
ng-click='$event.stopPropagation()',
app-state='ctrl.appState'
application='ctrl.application'
)
.sk-app-bar-item
a.no-decoration.sk-label.title(
href='https://standardnotes.org/help',

View File

@@ -438,7 +438,6 @@ class FooterViewCtrl extends PureViewCtrl<unknown, {
}
accountMenuPressed() {
console.log('here');
this.appState.accountMenu.toggleShow();
this.appState.accountMenu2.toggleShow();
this.closeAllRooms();