Revision 60217
Added by Konstantina Galouni over 3 years ago
modules/uoa-services-library/trunk/ng-openaire-library/src/app/connect/userEmailPreferences/mailPrefs.component.html | ||
---|---|---|
1 | 1 |
<!-- <div id="tm-main" class=" uk-section uk-margin-small-top tm-middle"> |
2 | 2 |
<div uk-grid uk-grid> |
3 | 3 |
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first"> --> |
4 |
<div class="uk-container uk-margin-top"> |
|
4 |
<div *ngIf="!hidden" class="uk-container uk-margin-top">
|
|
5 | 5 |
<div class="uk-article-title custom-article-title"> |
6 | 6 |
User Email Preferences for Claims Notifications |
7 | 7 |
</div> |
modules/uoa-services-library/trunk/ng-openaire-library/src/app/connect/userEmailPreferences/mailPrefs.component.ts | ||
---|---|---|
29 | 29 |
public notifications = []; |
30 | 30 |
public initialNotifications = []; |
31 | 31 |
public prefsChanged = {}; |
32 |
public hidden: boolean = true; |
|
32 | 33 |
|
33 | 34 |
//public showForbiddenMessage:boolean = false; |
34 | 35 |
public userValidMessage:string = ""; |
... | ... | |
48 | 49 |
ngOnInit() { |
49 | 50 |
this.properties = properties; |
50 | 51 |
this.subscriptions.push(this.route.queryParams.subscribe(params => { |
52 |
this.hidden = true; |
|
53 |
|
|
51 | 54 |
this.communityId = ConnectHelper.getCommunityFromDomain(this.properties.domain); |
52 | 55 |
if(!this.communityId) { |
53 | 56 |
this.communityId = params['communityId']; |
... | ... | |
79 | 82 |
this.notifications = JSON.parse(JSON.stringify( this.initialNotifications )); |
80 | 83 |
|
81 | 84 |
this.status = this.errorCodes.DONE; |
85 |
this.hidden = false; |
|
82 | 86 |
} |
83 | 87 |
}, |
84 | 88 |
err => { |
89 |
this.hidden = false; |
|
85 | 90 |
this.handleErrors(err); |
86 | 91 |
this.handleError("Error getting user email preferences for community with id: "+this.communityId, err); |
87 | 92 |
} |
Also available in: Unified diff
[Trunk | Library]: userEmailPreferences/mailPrefs.component: Add field "hidden", to hide "User Email Preferences for Claims Notifications" when not available for user.