test
This commit is contained in:
parent
3d80b212d2
commit
209caaeca1
|
@ -3,8 +3,8 @@ import { Routes, RouterModule, PreloadAllModules } from '@angular/router';
|
||||||
import { AuthGuard } from './commons/guard/auth.guard';
|
import { AuthGuard } from './commons/guard/auth.guard';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
// { path: '', loadChildren: './pages/pages.module#PagesModule', canActivate: [AuthGuard] },
|
{ path: '', loadChildren: './pages/pages.module#PagesModule', canActivate: [AuthGuard] },
|
||||||
{ path: '', loadChildren: './pages/pages.module#PagesModule'},
|
// { path: '', loadChildren: './pages/pages.module#PagesModule'},
|
||||||
{ path: 'auth', loadChildren: './pages/auth/auth-page.module#AuthPageModule' },
|
{ path: 'auth', loadChildren: './pages/auth/auth-page.module#AuthPageModule' },
|
||||||
// { path: 'errors', loadChildren: './pages/errors/errors-page.module#ErrorsPageModule' },
|
// { path: 'errors', loadChildren: './pages/errors/errors-page.module#ErrorsPageModule' },
|
||||||
];
|
];
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template pTemplate="footer" let-columns>
|
<ng-template pTemplate="footer" let-columns>
|
||||||
<tr>
|
<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" 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>
|
<button [disabled]="!selected" class="ui-button-danger" type="button" label="Deny" icon="ui-icon-close" pButton (click)="onAcceptOrDeny(false)"></button>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -33,7 +33,7 @@ export class ListComponent implements OnInit, AfterContentInit {
|
||||||
ngAfterContentInit() {
|
ngAfterContentInit() {
|
||||||
this.store.select(AuthSelector.select('domain')).subscribe(
|
this.store.select(AuthSelector.select('domain')).subscribe(
|
||||||
(domain: Domain) => {
|
(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() {
|
ngOnInit() {
|
||||||
// Temporary Data
|
// Temporary Data
|
||||||
// this.noauthProbes = new Array();
|
this.noauthProbes = new Array();
|
||||||
// for (let i = 0; i < 10; i++) {
|
for (let i = 0; i < 10; i++) {
|
||||||
// const p: NoAuthProbe = {
|
const p: NoAuthProbe = {
|
||||||
// id: i,
|
id: i,
|
||||||
// tempProbeKey: 'TempKey' + i,
|
tempProbeKey: 'TempKey' + i,
|
||||||
// createDate: new Date(),
|
createDate: new Date(),
|
||||||
// description: 'Description' + i,
|
description: 'Description' + i,
|
||||||
// };
|
};
|
||||||
// this.noauthProbes.push(p);
|
this.noauthProbes.push(p);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSelect(selected: NoAuthProbe) {
|
handleSelect(selected: NoAuthProbe) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user