Fix trigger
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import { Component, OnInit, Input,AfterViewInit } from '@angular/core';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
|
||||
import { IUser } from '../../models/user';
|
||||
import {Store} from '@ngrx/store';
|
||||
@@ -12,28 +10,28 @@ import * as appActions from '../../actions/app-common.actions';
|
||||
templateUrl: './app-menu.component.html',
|
||||
styleUrls: ['./app-menu.component.scss']
|
||||
})
|
||||
export class AppMenuComponent implements OnInit,AfterViewInit {
|
||||
export class AppMenuComponent implements OnInit {
|
||||
|
||||
@Input() user:IUser;
|
||||
@Input() showMenu:boolean;
|
||||
public noContent: boolean = true;
|
||||
|
||||
constructor(private store: Store<appReducers.State>, private route: ActivatedRoute) { }
|
||||
constructor(private store: Store<appReducers.State>) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
this.route.children.forEach((entry) => {
|
||||
if(entry.outlet=="app-menu") {
|
||||
this.noContent=false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
toggle(event:MouseEvent) {
|
||||
event.stopPropagation();
|
||||
this.store.dispatch(new appActions.ToggleAppMenu());
|
||||
}
|
||||
|
||||
activateRoute() {
|
||||
this.noContent=false;
|
||||
}
|
||||
|
||||
deActivateRoute() {
|
||||
this.noContent=true;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user