Show navbar

This commit is contained in:
Willem Dantuma 2020-01-08 11:37:57 +01:00
parent d3bc921000
commit b46c33d15c

View File

@ -6,6 +6,7 @@ import { MapComponent } from '@farmmaps/common-map';
import { LogoComponent } from './logo/logo.component'; import { LogoComponent } from './logo/logo.component';
import { MenuComponent } from './menu/menu.component'; import { MenuComponent } from './menu/menu.component';
import {NotImplementedComponent} from '@farmmaps/common'; import {NotImplementedComponent} from '@farmmaps/common';
import { NavBarGuard } from 'projects/common/src/public-api';
export function urlMatcher(url: UrlSegment[]) { export function urlMatcher(url: UrlSegment[]) {
return {consumed:url}; return {consumed:url};
@ -29,10 +30,12 @@ const routes = [
}, },
{ {
path:'editor/:type/item/:itemcode', path:'editor/:type/item/:itemcode',
canActivate:[NavBarGuard],
component: NotImplementedComponent component: NotImplementedComponent
}, },
{ {
path:'viewer/:type/item/:itemcode', path:'viewer/:type/item/:itemcode',
canActivate:[NavBarGuard],
component: NotImplementedComponent component: NotImplementedComponent
}, },
{ path: 'map', canActivateChild: [AuthGuard],canActivate:[FullScreenGuard], children: [ { path: 'map', canActivateChild: [AuthGuard],canActivate:[FullScreenGuard], children: [