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