1 import { Component, Input, OnChanges } from '@angular/core';
2 import { rgwEncryptionConfigKeys } from '~/app/shared/models/rgw-encryption-config-keys';
5 selector: 'cd-rgw-config-details',
6 templateUrl: './rgw-config-details.component.html',
7 styleUrls: ['./rgw-config-details.component.scss']
9 export class RgwConfigDetailsComponent implements OnChanges {
15 excludeProps: any[] = [];
16 filteredEncryptionConfigValues: {};
20 this.filteredEncryptionConfigValues = Object.keys(this.selection)
21 .filter((key) => !this.excludeProps.includes(key))
22 .reduce((obj, key) => {
23 obj[key] = this.selection[key];
26 const transformedData = {};
27 for (const key in this.filteredEncryptionConfigValues) {
28 if (rgwEncryptionConfigKeys[key]) {
29 transformedData[rgwEncryptionConfigKeys[key]] = this.filteredEncryptionConfigValues[key];
31 transformedData[key] = this.filteredEncryptionConfigValues[key];
34 this.transformedData = transformedData;