]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | import { Component, Input, OnChanges } from '@angular/core'; |
2 | ||
f67539c2 | 3 | import { MgrModuleService } from '~/app/shared/api/mgr-module.service'; |
11fdf7f2 TL |
4 | |
5 | @Component({ | |
6 | selector: 'cd-mgr-module-details', | |
7 | templateUrl: './mgr-module-details.component.html', | |
8 | styleUrls: ['./mgr-module-details.component.scss'] | |
9 | }) | |
10 | export class MgrModuleDetailsComponent implements OnChanges { | |
11 | module_config: any; | |
12 | ||
13 | @Input() | |
e306af50 | 14 | selection: any; |
11fdf7f2 TL |
15 | |
16 | constructor(private mgrModuleService: MgrModuleService) {} | |
17 | ||
18 | ngOnChanges() { | |
e306af50 TL |
19 | if (this.selection) { |
20 | this.mgrModuleService.getConfig(this.selection.name).subscribe((resp: any) => { | |
11fdf7f2 TL |
21 | this.module_config = resp; |
22 | }); | |
23 | } | |
24 | } | |
25 | } |