Revert "AW-1435 Add links to package manager and widget manager"
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This reverts commit 0157812357
.
This commit is contained in:
@@ -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<appReducers.State>, private router$: Router) { }
|
||||
constructor(private oauthService:OAuthService, private store: Store<appReducers.State>) { }
|
||||
|
||||
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']);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user