]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-501/nfs-501.component.ts
import 15.2.5
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / nfs / nfs-501 / nfs-501.component.ts
1 import { Component, OnDestroy, OnInit } from '@angular/core';
2 import { ActivatedRoute } from '@angular/router';
3
4 import { I18n } from '@ngx-translate/i18n-polyfill';
5
6 @Component({
7 selector: 'cd-nfs-501',
8 templateUrl: './nfs-501.component.html',
9 styleUrls: ['./nfs-501.component.scss']
10 })
11 export class Nfs501Component implements OnInit, OnDestroy {
12 message = this.i18n('The NFS Ganesha service is not configured.');
13 routeParamsSubscribe: any;
14
15 constructor(private route: ActivatedRoute, private i18n: I18n) {}
16
17 ngOnInit() {
18 this.routeParamsSubscribe = this.route.params.subscribe((params: { message: string }) => {
19 this.message = params.message;
20 });
21 }
22
23 ngOnDestroy() {
24 this.routeParamsSubscribe.unsubscribe();
25 }
26 }