diff --git a/projects/common/src/fm/actions/app-common.actions.ts b/projects/common/src/fm/actions/app-common.actions.ts index 963ef5c..bee18cd 100644 --- a/projects/common/src/fm/actions/app-common.actions.ts +++ b/projects/common/src/fm/actions/app-common.actions.ts @@ -52,6 +52,8 @@ export const UPLOADEDFILECLICK = '[AppCommon] UploadedFileClick'; export const TOGGLEMENU = '[AppCommon] ToggleMenu'; +export const TOGGLEACCOUNTMENU = '[AppCommon] ToggleAccountMenu'; + export const SETMENUVISIBLE = '[AppCommon] SetMenuVisible'; export class InitUser implements Action { @@ -227,6 +229,12 @@ export class ToggleMenu implements Action { constructor() { } } +export class ToggleAccountMenu implements Action { + readonly type = TOGGLEACCOUNTMENU; + + constructor() { } +} + export class SetMenuVisible implements Action { readonly type = SETMENUVISIBLE; @@ -262,5 +270,6 @@ export type Actions = OpenModal | DeviceUpdateEvent | ToggleMenu | SetMenuVisible - | InitUserPackagesSuccess; + | InitUserPackagesSuccess + | ToggleAccountMenu; diff --git a/projects/common/src/fm/components/app/app.component.html b/projects/common/src/fm/components/app/app.component.html index a580cb1..ee20526 100644 --- a/projects/common/src/fm/components/app/app.component.html +++ b/projects/common/src/fm/components/app/app.component.html @@ -24,6 +24,6 @@
- +
diff --git a/projects/common/src/fm/components/app/app.component.ts b/projects/common/src/fm/components/app/app.component.ts index 88b4e55..6d58b6a 100644 --- a/projects/common/src/fm/components/app/app.component.ts +++ b/projects/common/src/fm/components/app/app.component.ts @@ -35,6 +35,7 @@ export class AppComponent implements OnInit, OnDestroy { public fullScreen: Observable; public routeLoading: Observable; public menuVisible: Observable; + public accountMenuVisible: Observable; public user:Observable; @Input() showUploadProgress: boolean =true; @@ -90,6 +91,7 @@ export class AppComponent implements OnInit, OnDestroy { this.fullScreen = this.store.select(appReducers.selectGetFullScreen); this.routeLoading = this.store.select(appReducers.selectGetRouteLoading); this.menuVisible = this.store.select(appReducers.SelectGetMenuVisible); + this.accountMenuVisible = this.store.select(appReducers.SelectGetAccountMenuVisible); this.user = this.store.select(appReducers.SelectGetUser); this.InstallRouteEventHandler(); this.InstallEventServiceEventHandler(); diff --git a/projects/common/src/fm/components/user-menu/user-menu.component.html b/projects/common/src/fm/components/user-menu/user-menu.component.html index 266fbb7..4d45d8f 100644 --- a/projects/common/src/fm/components/user-menu/user-menu.component.html +++ b/projects/common/src/fm/components/user-menu/user-menu.component.html @@ -1,7 +1,7 @@