1
|
import {Component, OnInit, Input} from '@angular/core';
|
2
|
import {FormBuilder} from '@angular/forms';
|
3
|
import {ActivatedRoute, Router} from '@angular/router';
|
4
|
|
5
|
import {EnvProperties} from '../../openaireLibrary/utils/properties/env-properties';
|
6
|
|
7
|
import {Session} from '../../openaireLibrary/login/utils/helper.class';
|
8
|
|
9
|
@Component({
|
10
|
selector: 'manage-user-notification',
|
11
|
templateUrl: './manage-user-notification.component.html',
|
12
|
})
|
13
|
|
14
|
|
15
|
export class ManageUserNotificationComponent implements OnInit {
|
16
|
|
17
|
public properties: EnvProperties = null;
|
18
|
public communityId = null;
|
19
|
|
20
|
constructor (private route: ActivatedRoute, private _router: Router, public _fb: FormBuilder) {
|
21
|
}
|
22
|
|
23
|
ngOnInit() {
|
24
|
this.route.data.subscribe((data: { envSpecific: EnvProperties }) => {
|
25
|
this.properties = data.envSpecific;
|
26
|
this.route.queryParams.subscribe(
|
27
|
communityId => {
|
28
|
this.communityId = communityId['communityId'];
|
29
|
if (this.communityId != null && this.communityId != '') {
|
30
|
if (Session.getUser()) {
|
31
|
Session.getUserEmail();
|
32
|
}
|
33
|
}
|
34
|
}
|
35
|
);
|
36
|
});
|
37
|
}
|
38
|
|
39
|
}
|