This commit is contained in:
insanity 2018-04-13 15:26:26 +09:00
parent 3d80b212d2
commit 209caaeca1
3 changed files with 14 additions and 14 deletions

View File

@ -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' },
];

View File

@ -20,7 +20,7 @@
</ng-template>
<ng-template pTemplate="footer" let-columns>
<tr>
<td colspan="3">
<td colspan="4">
<button [disabled]="!selected" type="button" label="Accept" icon="fa-check" pButton (click)="onAcceptOrDeny(true)"></button>
<button [disabled]="!selected" class="ui-button-danger" type="button" label="Deny" icon="ui-icon-close" pButton (click)="onAcceptOrDeny(false)"></button>
</td>

View File

@ -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) {