summaryrefslogtreecommitdiffstats
path: root/cds-ui/client-frankfurt/src/app/modules/feature-modules/packages/packages-dashboard/package-list/package-list.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cds-ui/client-frankfurt/src/app/modules/feature-modules/packages/packages-dashboard/package-list/package-list.component.ts')
-rw-r--r--cds-ui/client-frankfurt/src/app/modules/feature-modules/packages/packages-dashboard/package-list/package-list.component.ts40
1 files changed, 22 insertions, 18 deletions
diff --git a/cds-ui/client-frankfurt/src/app/modules/feature-modules/packages/packages-dashboard/package-list/package-list.component.ts b/cds-ui/client-frankfurt/src/app/modules/feature-modules/packages/packages-dashboard/package-list/package-list.component.ts
index 4ef0faf45..c7ec0af20 100644
--- a/cds-ui/client-frankfurt/src/app/modules/feature-modules/packages/packages-dashboard/package-list/package-list.component.ts
+++ b/cds-ui/client-frankfurt/src/app/modules/feature-modules/packages/packages-dashboard/package-list/package-list.component.ts
@@ -1,28 +1,32 @@
-import { Component, OnInit } from '@angular/core';
-import { BlueprintModel } from '../../model/BluePrint.model';
-import { PackagesStore } from '../../packages.store';
+import {Component, OnInit} from '@angular/core';
+import {BlueprintModel} from '../../model/BluePrint.model';
+import {PackagesStore} from '../../packages.store';
@Component({
- selector: 'app-packages-list',
- templateUrl: './package-list.component.html',
- styleUrls: ['./package-list.component.css']
+ selector: 'app-packages-list',
+ templateUrl: './package-list.component.html',
+ styleUrls: ['./package-list.component.css']
})
export class PackageListComponent implements OnInit {
- viewedPackages: BlueprintModel[] = [];
- numberOfPackages: number;
+ viewedPackages: BlueprintModel[] = [];
- constructor(private packagesStore: PackagesStore) {
- console.log('PackageListComponent');
- this.packagesStore.state$.subscribe(page => {
- console.log(page);
- this.viewedPackages = page.content;
- });
- }
+ constructor(private packagesStore: PackagesStore) {
+ console.log('PackageListComponent');
+ this.packagesStore.state$.subscribe(state => {
+ console.log(state);
+ if (state.page) {
+ this.viewedPackages = state.page.content;
+ }
+ });
+ }
- ngOnInit() {
- // this.packagesStore.getPagedPackages(0, this.packagesStore.pageSize);
- }
+ ngOnInit() {
+ this.packagesStore.getAll();
+ }
+ testDispatch(bluePrint: BlueprintModel) {
+ console.log(bluePrint.id);
+ }
}