]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
5ab66d78f8647d798c0884d6f90ab4fe2fa1c27f
[ceph.git] /
1 import { Component, Input, OnChanges } from '@angular/core';
2
3 import * as _ from 'lodash';
4
5 import { CdTableSelection } from '../../../../shared/models/cd-table-selection';
6
7 @Component({
8   selector: 'cd-configuration-details',
9   templateUrl: './configuration-details.component.html',
10   styleUrls: ['./configuration-details.component.scss']
11 })
12 export class ConfigurationDetailsComponent implements OnChanges {
13   @Input()
14   selection: CdTableSelection;
15   selectedItem: any;
16   flags = {
17     runtime: 'The value can be updated at runtime.',
18     no_mon_update:
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.'
25   };
26
27   constructor() {}
28
29   ngOnChanges() {
30     if (this.selection.hasSelection) {
31       this.selectedItem = this.selection.first();
32       this.selectedItem.services = _.split(this.selectedItem.services, ',');
33     }
34   }
35 }