1 import { Component, Input, OnChanges } from '@angular/core';
3 import { RgwBucketService } from '~/app/shared/api/rgw-bucket.service';
6 selector: 'cd-rgw-bucket-details',
7 templateUrl: './rgw-bucket-details.component.html',
8 styleUrls: ['./rgw-bucket-details.component.scss']
10 export class RgwBucketDetailsComponent implements OnChanges {
14 constructor(private rgwBucketService: RgwBucketService) {}
18 this.rgwBucketService.get(this.selection.bid).subscribe((bucket: object) => {
19 bucket['lock_retention_period_days'] = this.rgwBucketService.getLockDays(bucket);
20 this.selection = bucket;