]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/blob
df0e6d162610241d7b1be559bf701c531ce77525
[ceph-ci.git] /
1 import { Component, Input, OnChanges } from '@angular/core';
2
3 import * as _ from 'lodash';
4
5 @Component({
6   selector: 'cd-configuration-details',
7   templateUrl: './configuration-details.component.html',
8   styleUrls: ['./configuration-details.component.scss']
9 })
10 export class ConfigurationDetailsComponent implements OnChanges {
11   @Input()
12   selection: any;
13   flags = {
14     runtime: $localize`The value can be updated at runtime.`,
15     no_mon_update: $localize`Daemons/clients do not pull this value from the
16       monitor config database. We disallow setting this option via 'ceph config
17       set ...'. This option should be configured via ceph.conf or via the
18       command line.`,
19     startup: $localize`Option takes effect only during daemon startup.`,
20     cluster_create: $localize`Option only affects cluster creation.`,
21     create: $localize`Option only affects daemon creation.`
22   };
23
24   ngOnChanges() {
25     if (this.selection) {
26       this.selection.services = _.split(this.selection.services, ',');
27     }
28   }
29 }