diff --git a/src/app/app.component.html b/src/app/app.component.html index 1a882f1..f1016ed 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -9,7 +9,7 @@
- + diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index cfb2117..e0a9348 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -1,6 +1,6 @@ -import { TestBed, waitForAsync } from '@angular/core/testing'; +import {TestBed, waitForAsync} from '@angular/core/testing'; -import { AppComponent } from './app.component'; +import {AppComponent} from './app.component'; describe('AppComponent', () => { beforeEach(waitForAsync(() => { diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 49b0c6c..c952dcf 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,16 +1,16 @@ -import { Component, HostBinding, OnDestroy, OnInit } from '@angular/core' -import { Title } from '@angular/platform-browser' -import { ActivationEnd, Router } from '@angular/router' -import { select, Store } from '@ngrx/store' -import { environment as env } from '@env' -import { selectorSettings } from '@app/settings' -import { OverlayContainer } from '@angular/cdk/overlay' -import * as fromAuth from '@app/auth/reducers' -import * as Auth from '@app/auth/actions/auth' -import { RefreshToken } from '@app/auth/actions/auth' -import { Observable, Subject } from 'rxjs' -import { filter, map, takeUntil } from 'rxjs/operators' -import { User } from '@app/auth/models/user' +import {Component, HostBinding, OnDestroy, OnInit} from '@angular/core'; +import {Title} from '@angular/platform-browser'; +import {ActivationEnd, Router} from '@angular/router'; +import {select, Store} from '@ngrx/store'; +import {environment as env} from '@env'; +import {selectorSettings} from '@app/settings'; +import {OverlayContainer} from '@angular/cdk/overlay'; +import * as fromAuth from '@app/auth/reducers'; +import * as Auth from '@app/auth/actions/auth'; +import {RefreshToken} from '@app/auth/actions/auth'; +import {Observable, Subject} from 'rxjs'; +import {filter, map, takeUntil} from 'rxjs/operators'; +import {User} from '@app/auth/models/user'; @Component({ selector: 'ndfsm-root', @@ -18,11 +18,11 @@ import { User } from '@app/auth/models/user' styleUrls: ['./app.component.scss'], }) export class AppComponent implements OnInit, OnDestroy { - @HostBinding('class') componentCssClass + @HostBinding('class') componentCssClass; // TODO EXTRACT navigation = [ - { link: 'tools', label: 'Tools' }, - ] + {link: 'tools', label: 'Tools'}, + ]; // navigationDev = [ // { link: 'games', label: 'Games' }, // { link: 'scripts', label: 'Scripts' }, @@ -30,65 +30,65 @@ export class AppComponent implements OnInit, OnDestroy { // todo move to module navigationUser = [ - { link: 'finance', label: 'Finance', + { + link: 'finance', label: 'Finance', children: [ - { link: 'finance/dashboard', label: 'Dashboard'}, - { link: 'finance/transaction', label: 'Transactions'}, - ]}, - ] + {link: 'finance/dashboard', label: 'Dashboard'}, + {link: 'finance/transaction', label: 'Transactions'}, + ] + }, + ]; navigationSideMenu = [ ...this.navigation, - { link: 'settings', label: 'Settings' }, - ] - loggedIn$: Observable{{note.keywords}}