]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.ts
Import ceph 15.2.8
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / rgw / rgw-bucket-details / rgw-bucket-details.component.ts
CommitLineData
f91f0fd5
TL
1import { Component, Input, OnChanges } from '@angular/core';
2
3import { RgwBucketService } from '../../../shared/api/rgw-bucket.service';
11fdf7f2
TL
4
5@Component({
6 selector: 'cd-rgw-bucket-details',
7 templateUrl: './rgw-bucket-details.component.html',
8 styleUrls: ['./rgw-bucket-details.component.scss']
9})
f91f0fd5 10export class RgwBucketDetailsComponent implements OnChanges {
11fdf7f2 11 @Input()
e306af50 12 selection: any;
11fdf7f2 13
f91f0fd5
TL
14 constructor(private rgwBucketService: RgwBucketService) {}
15
16 ngOnChanges() {
17 if (this.selection) {
18 this.rgwBucketService.get(this.selection.bid).subscribe((bucket: object) => {
19 this.selection = bucket;
20 });
21 }
22 }
11fdf7f2 23}