From 80522a3a2f882c97e6f23521f6a85b6d9f4e6ba0 Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Mon, 17 Aug 2020 15:53:02 +0200 Subject: [PATCH] Revert "AW-1435 Add links to package manager and widget manager" This reverts commit 015781235730cb59c495f435503ce888a68655ce. --- .../components/user-menu/user-menu.component.html | 6 ------ .../fm/components/user-menu/user-menu.component.ts | 14 ++------------ 2 files changed, 2 insertions(+), 18 deletions(-) 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 46cdb25..fa8895e 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 @@ -5,12 +5,6 @@
{{user.name}}
-
-  Package Manager -
-
-  Widget Manager -
logout
diff --git a/projects/common/src/fm/components/user-menu/user-menu.component.ts b/projects/common/src/fm/components/user-menu/user-menu.component.ts index d403730..8e3f826 100644 --- a/projects/common/src/fm/components/user-menu/user-menu.component.ts +++ b/projects/common/src/fm/components/user-menu/user-menu.component.ts @@ -4,7 +4,6 @@ import { IUser } from '../../models/user'; import {Store} from '@ngrx/store'; import * as appReducers from '../../reducers/app-common.reducer'; import * as appActions from '../../actions/app-common.actions'; -import { Router } from '@angular/router'; @Component({ selector: 'fm-user-menu', @@ -16,7 +15,7 @@ export class UserMenuComponent implements OnInit { @Input() user:IUser; @Input() showMenu:boolean; - constructor(private oauthService:OAuthService, private store: Store, private router$: Router) { } + constructor(private oauthService:OAuthService, private store: Store) { } ngOnInit(): void { } @@ -30,18 +29,9 @@ export class UserMenuComponent implements OnInit { this.store.dispatch(new appActions.Logout()); } + toggle(event:MouseEvent) { event.stopPropagation(); this.store.dispatch(new appActions.ToggleAccountMenu()); } - - startPackageManager(event:MouseEvent) { - event.preventDefault(); - this.router$.navigate(['/editor/package-manager']); - } - - startWidgetManager(event:MouseEvent) { - event.preventDefault(); - this.router$.navigate(['/editor/widget-manager']); - } }