1 import { Component, Input, OnChanges } from '@angular/core';
3 import * as _ from 'lodash';
5 import { CdTableSelection } from '../../../../shared/models/cd-table-selection';
8 selector: 'cd-configuration-details',
9 templateUrl: './configuration-details.component.html',
10 styleUrls: ['./configuration-details.component.scss']
12 export class ConfigurationDetailsComponent implements OnChanges {
14 selection: CdTableSelection;
17 runtime: 'The value can be updated at runtime.',
19 'Daemons/clients do not pull this value from the monitor config database. ' +
20 `We disallow setting this option via 'ceph config set ...'. This option should be ` +
21 'configured via ceph.conf or via the command line.',
22 startup: 'Option takes effect only during daemon startup.',
23 cluster_create: 'Option only affects cluster creation.',
24 create: 'Option only affects daemon creation.'
30 if (this.selection.hasSelection) {
31 this.selectedItem = this.selection.first();
32 this.selectedItem.services = _.split(this.selectedItem.services, ',');