]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
bc8bc418d0fd28cd13628c897d9ae9963841d41d
[ceph.git] /
1 import { Component, Input, OnChanges } from '@angular/core';
2
3 import { CdTableSelection } from '../../../shared/models/cd-table-selection';
4
5 @Component({
6   selector: 'cd-rgw-bucket-details',
7   templateUrl: './rgw-bucket-details.component.html',
8   styleUrls: ['./rgw-bucket-details.component.scss']
9 })
10 export class RgwBucketDetailsComponent implements OnChanges {
11   bucket: any;
12
13   @Input() selection: CdTableSelection;
14
15   constructor() {}
16
17   ngOnChanges() {
18     if (this.selection.hasSelection) {
19       this.bucket = this.selection.first();
20     }
21   }
22 }