From 209caaeca17194f7d4b10607e740e090a13a609c Mon Sep 17 00:00:00 2001 From: insanity Date: Fri, 13 Apr 2018 15:26:26 +0900 Subject: [PATCH] test --- src/app/app-routing.module.ts | 4 ++-- .../noauth/component/list/list.component.html | 2 +- .../noauth/component/list/list.component.ts | 22 +++++++++---------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index c75ae12..3bca962 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -3,8 +3,8 @@ import { Routes, RouterModule, PreloadAllModules } from '@angular/router'; import { AuthGuard } from './commons/guard/auth.guard'; const routes: Routes = [ - // { path: '', loadChildren: './pages/pages.module#PagesModule', canActivate: [AuthGuard] }, - { path: '', loadChildren: './pages/pages.module#PagesModule'}, + { path: '', loadChildren: './pages/pages.module#PagesModule', canActivate: [AuthGuard] }, + // { path: '', loadChildren: './pages/pages.module#PagesModule'}, { path: 'auth', loadChildren: './pages/auth/auth-page.module#AuthPageModule' }, // { path: 'errors', loadChildren: './pages/errors/errors-page.module#ErrorsPageModule' }, ]; diff --git a/src/packages/noauth/component/list/list.component.html b/src/packages/noauth/component/list/list.component.html index 3b61a5d..b7085fe 100644 --- a/src/packages/noauth/component/list/list.component.html +++ b/src/packages/noauth/component/list/list.component.html @@ -20,7 +20,7 @@ - + diff --git a/src/packages/noauth/component/list/list.component.ts b/src/packages/noauth/component/list/list.component.ts index 2d008c3..db4d4a1 100644 --- a/src/packages/noauth/component/list/list.component.ts +++ b/src/packages/noauth/component/list/list.component.ts @@ -33,7 +33,7 @@ export class ListComponent implements OnInit, AfterContentInit { ngAfterContentInit() { this.store.select(AuthSelector.select('domain')).subscribe( (domain: Domain) => { - this.store.dispatch(new ListStore.ReadAllByDomain(domain)); + // this.store.dispatch(new ListStore.ReadAllByDomain(domain)); } ); @@ -51,16 +51,16 @@ export class ListComponent implements OnInit, AfterContentInit { ngOnInit() { // Temporary Data - // this.noauthProbes = new Array(); - // for (let i = 0; i < 10; i++) { - // const p: NoAuthProbe = { - // id: i, - // tempProbeKey: 'TempKey' + i, - // createDate: new Date(), - // description: 'Description' + i, - // }; - // this.noauthProbes.push(p); - // } + this.noauthProbes = new Array(); + for (let i = 0; i < 10; i++) { + const p: NoAuthProbe = { + id: i, + tempProbeKey: 'TempKey' + i, + createDate: new Date(), + description: 'Description' + i, + }; + this.noauthProbes.push(p); + } } handleSelect(selected: NoAuthProbe) {