blob: 5a08ebedd722437ed62264e925c942900c1d191d (
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
|
import { Component, Input, OnChanges } from '@angular/core';
import { MgrModuleService } from '~/app/shared/api/mgr-module.service';
@Component({
selector: 'cd-mgr-module-details',
templateUrl: './mgr-module-details.component.html',
styleUrls: ['./mgr-module-details.component.scss']
})
export class MgrModuleDetailsComponent implements OnChanges {
module_config: any;
@Input()
selection: any;
constructor(private mgrModuleService: MgrModuleService) {}
ngOnChanges() {
if (this.selection) {
this.mgrModuleService.getConfig(this.selection.name).subscribe((resp: any) => {
this.module_config = resp;
});
}
}
}
|