diff --git a/@overflow/target/component/list/list.component.html b/@overflow/target/component/list/list.component.html index c75eb41..0d982c9 100644 --- a/@overflow/target/component/list/list.component.html +++ b/@overflow/target/component/list/list.component.html @@ -5,7 +5,7 @@ No. Status - Type + Type Name Sensors Created at @@ -15,11 +15,11 @@ {{rowIndex + 1}} - ?? - {{target.infra.id}} + + {{target.infra.metaInfraType.name}} {{target.displayName}} {{target.sensorCount}} - {{target.createDate | date: 'dd.MM.yyyy'}} + {{target.createDate | date: 'yyyy-MM-dd'}} diff --git a/@overflow/target/component/list/list.component.ts b/@overflow/target/component/list/list.component.ts index 1a12485..06f45a0 100644 --- a/@overflow/target/component/list/list.component.ts +++ b/@overflow/target/component/list/list.component.ts @@ -17,25 +17,12 @@ import { Page } from '@overflow/commons-typescript/model/commons/Page'; selector: 'of-target-list', templateUrl: './list.component.html', }) -export class ListComponent implements OnInit, AfterContentInit, OnDestroy { +export class ListComponent implements OnInit { - // infrasSubscription$: Subscription; - // infras$: Observable; - // infras: Infra[]; - // probe: Probe; - // target: Target = null; - // sensorSettingDisplay = false; - - // pageSize = '10'; - // totalLength = 0; - // currPage = 0; page: Page; pending$: Observable; error$: Observable; - totalLength: number; - targets: Object; - constructor( private store: Store, private targetService: TargetService, @@ -45,7 +32,7 @@ export class ListComponent implements OnInit, AfterContentInit, OnDestroy { ngOnInit() { const pageParams: PageParams = { pageNo: 0, - countPerPage: 2, + countPerPage: 5, sortCol: 'id', sortDirection: 'descending', }; @@ -69,21 +56,6 @@ export class ListComponent implements OnInit, AfterContentInit, OnDestroy { ).subscribe(); } - ngAfterContentInit() { - // this.route.params.subscribe((params: any) => { - // this.probe = { - // id: params['id'], - // }; - // this.getInfras(0); - // }); - } - - ngOnDestroy() { - // if (this.infrasSubscription$) { - // this.infrasSubscription$.unsubscribe(); - // } - } - getInfras(pageNo) { // const pageParams: PageParams = { // pageNo: pageNo + '', @@ -108,14 +80,6 @@ export class ListComponent implements OnInit, AfterContentInit, OnDestroy { // this.sensorSettingDisplay = true; } - onSensorSettingClose() { - // this.sensorSettingDisplay = false; - } - - onPaging(e) { - // this.getInfras(e.page); - } - onPaginate(event) { }