]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-details/mgr-module-details.component.ts
import 15.2.4
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / cluster / mgr-modules / mgr-module-details / mgr-module-details.component.ts
CommitLineData
11fdf7f2
TL
1import { Component, Input, OnChanges } from '@angular/core';
2
3import { MgrModuleService } from '../../../../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})
10export 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}