blob: 5cb41c35e708fd46bd44cbed1aa8166e6a464138 (
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
|
import {Component, EventEmitter, OnInit, Output} from '@angular/core';
import {PackageCreationStore} from '../../package-creation.store';
import {Template} from '../../mapping-models/CBAPacakge.model';
@Component({
selector: 'app-templ-mapp-listing',
templateUrl: './templ-mapp-listing.component.html',
styleUrls: ['./templ-mapp-listing.component.css']
})
export class TemplMappListingComponent implements OnInit {
@Output() showCreationViewParentNotification = new EventEmitter<any>();
private templates: Template;
constructor(private packageCreationStore: PackageCreationStore) {
this.packageCreationStore.state$.subscribe(cba => {
if (cba.templates) {
this.templates = cba.templates;
}
});
}
ngOnInit() {
}
openCreationView() {
this.showCreationViewParentNotification.emit('tell parent to open create views');
}
}
|