]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-details/configuration-details.component.ts
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / cluster / configuration / configuration-details / configuration-details.component.ts
1 import { Component, Input, OnChanges } from '@angular/core';
2
3 import { I18n } from '@ngx-translate/i18n-polyfill';
4 import * as _ from 'lodash';
5
6 import { CdTableSelection } from '../../../../shared/models/cd-table-selection';
7
8 @Component({
9 selector: 'cd-configuration-details',
10 templateUrl: './configuration-details.component.html',
11 styleUrls: ['./configuration-details.component.scss']
12 })
13 export class ConfigurationDetailsComponent implements OnChanges {
14 @Input()
15 selection: CdTableSelection;
16 selectedItem: any;
17 flags = {
18 runtime: this.i18n('The value can be updated at runtime.'),
19 no_mon_update: this.i18n(`Daemons/clients do not pull this value from the
20 monitor config database. We disallow setting this option via 'ceph config
21 set ...'. This option should be configured via ceph.conf or via the
22 command line.`),
23 startup: this.i18n('Option takes effect only during daemon startup.'),
24 cluster_create: this.i18n('Option only affects cluster creation.'),
25 create: this.i18n('Option only affects daemon creation.')
26 };
27
28 constructor(private i18n: I18n) {}
29
30 ngOnChanges() {
31 if (this.selection.hasSelection) {
32 this.selectedItem = this.selection.first();
33 this.selectedItem.services = _.split(this.selectedItem.services, ',');
34 }
35 }
36 }