]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-501/rgw-501.component.ts
bump version to 15.2.11-pve1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / rgw / rgw-501 / rgw-501.component.ts
CommitLineData
11fdf7f2
TL
1import { Component, OnDestroy, OnInit } from '@angular/core';
2import { ActivatedRoute } from '@angular/router';
3
11fdf7f2
TL
4@Component({
5 selector: 'cd-rgw-501',
6 templateUrl: './rgw-501.component.html',
7 styleUrls: ['./rgw-501.component.scss']
8})
9export class Rgw501Component implements OnInit, OnDestroy {
11fdf7f2
TL
10 message = 'The Object Gateway service is not configured.';
11 routeParamsSubscribe: any;
12
f6b5b4d7 13 constructor(private route: ActivatedRoute) {}
11fdf7f2
TL
14
15 ngOnInit() {
11fdf7f2
TL
16 this.routeParamsSubscribe = this.route.params.subscribe((params: { message: string }) => {
17 this.message = params.message;
18 });
19 }
20
21 ngOnDestroy() {
22 this.routeParamsSubscribe.unsubscribe();
23 }
24}