1 import { Component, OnDestroy, OnInit } from '@angular/core';
2 import { ActivatedRoute } from '@angular/router';
4 import { I18n } from '@ngx-translate/i18n-polyfill';
7 selector: 'cd-nfs-501',
8 templateUrl: './nfs-501.component.html',
9 styleUrls: ['./nfs-501.component.scss']
11 export class Nfs501Component implements OnInit, OnDestroy {
12 message = this.i18n('The NFS Ganesha service is not configured.');
13 routeParamsSubscribe: any;
15 constructor(private route: ActivatedRoute, private i18n: I18n) {}
18 this.routeParamsSubscribe = this.route.params.subscribe((params: { message: string }) => {
19 this.message = params.message;
24 this.routeParamsSubscribe.unsubscribe();