84fdafb3606d8d66ec02cec80971a88347b80b86
[ccsdk/cds.git] /
1 import {Component, OnInit} from '@angular/core';
2 import {ActivatedRoute} from '@angular/router';
3 import {PackageStore} from './package.store';
4 import {BluePrintDetailModel} from '../model/BluePrint.detail.model';
5
6
7 @Component({
8     selector: 'app-configuration-dashboard',
9     templateUrl: './configuration-dashboard.component.html',
10     styleUrls: ['./configuration-dashboard.component.css']
11 })
12 export class ConfigurationDashboardComponent implements OnInit {
13     viewedPackage: BluePrintDetailModel = new BluePrintDetailModel();
14
15     constructor(private route: ActivatedRoute, private configurationStore: PackageStore) {
16
17         const id = this.route.snapshot.paramMap.get('id');
18         this.configurationStore.getPagedPackages(id);
19         this.configurationStore.state$.subscribe(
20             el => {
21                 if (el && el.configuration) {
22                     this.viewedPackage = el.configuration;
23                 }
24             }
25         );
26
27
28     }
29
30     ngOnInit() {
31
32     }
33
34 }