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