]> git.proxmox.com Git - ceph.git/blob - 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
1 import { Component, Input, OnChanges } from '@angular/core';
2
3 import { MgrModuleService } from '../../../../shared/api/mgr-module.service';
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()
14 selection: any;
15
16 constructor(private mgrModuleService: MgrModuleService) {}
17
18 ngOnChanges() {
19 if (this.selection) {
20 this.mgrModuleService.getConfig(this.selection.name).subscribe((resp: any) => {
21 this.module_config = resp;
22 });
23 }
24 }
25 }