]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
aeb72b0bdc213ea5848073f3d02c546f291709d0
[ceph.git] /
1 import { Component, Input, OnChanges } from '@angular/core';
2 import { CdTableColumn } from '~/app/shared/models/cd-table-column';
3 import { StorageClassDetails } from '../models/rgw-storage-class.model';
4
5 @Component({
6   selector: 'cd-rgw-storage-class-details',
7   templateUrl: './rgw-storage-class-details.component.html',
8   styleUrls: ['./rgw-storage-class-details.component.scss']
9 })
10 export class RgwStorageClassDetailsComponent implements OnChanges {
11   @Input()
12   selection: StorageClassDetails;
13   columns: CdTableColumn[] = [];
14   storageDetails: StorageClassDetails;
15
16   ngOnChanges() {
17     if (this.selection) {
18       this.storageDetails = {
19         access_key: this.selection.access_key,
20         secret: this.selection.secret,
21         target_path: this.selection.target_path,
22         multipart_min_part_size: this.selection.multipart_min_part_size,
23         multipart_sync_threshold: this.selection.multipart_sync_threshold,
24         host_style: this.selection.host_style,
25         retain_head_object: this.selection.retain_head_object
26       };
27     }
28   }
29 }