1 import { Component, Input, OnChanges } from '@angular/core';
3 import { I18n } from '@ngx-translate/i18n-polyfill';
4 import * as _ from 'lodash';
6 import { CdTableSelection } from '../../../../shared/models/cd-table-selection';
9 selector: 'cd-configuration-details',
10 templateUrl: './configuration-details.component.html',
11 styleUrls: ['./configuration-details.component.scss']
13 export class ConfigurationDetailsComponent implements OnChanges {
15 selection: CdTableSelection;
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
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.')
28 constructor(private i18n: I18n) {}
31 if (this.selection.hasSelection) {
32 this.selectedItem = this.selection.first();
33 this.selectedItem.services = _.split(this.selectedItem.services, ',');