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';
8 selector: 'app-configuration-dashboard',
9 templateUrl: './configuration-dashboard.component.html',
10 styleUrls: ['./configuration-dashboard.component.css']
12 export class ConfigurationDashboardComponent implements OnInit {
13 viewedPackage: BluePrintDetailModel = new BluePrintDetailModel();
15 constructor(private route: ActivatedRoute, private configurationStore: PackageStore) {
17 const id = this.route.snapshot.paramMap.get('id');
18 this.configurationStore.getPagedPackages(id);
24 this.configurationStore.state$.subscribe(
26 if (el && el.configuration) {
27 this.viewedPackage = el.configuration;
28 this.configurationStore.downloadResource(
29 this.viewedPackage.artifactName + '/' + this.viewedPackage.artifactVersion);