From 3b0f4a3e2b3aa97c0ee905a0c3247164b72de24b Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 15 Jan 2021 11:58:34 +0000 Subject: [PATCH] [Library | Trunk]: Add email composer function as parameter git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60252 d315682c-612b-4755-9ff5-7f18f6832af3 --- dashboard/users/role-users/role-users.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dashboard/users/role-users/role-users.component.ts b/dashboard/users/role-users/role-users.component.ts index 8284555e..396c6db3 100644 --- a/dashboard/users/role-users/role-users.component.ts +++ b/dashboard/users/role-users/role-users.component.ts @@ -32,6 +32,8 @@ export class RoleUsersComponent implements OnInit, OnDestroy, OnChanges { public role: "member" | "manager" = "manager"; @Input() public message: string = null; + @Input() + public emailComposer: Function; public user: User = null; public active: any[]; public pending: any[]; @@ -179,7 +181,7 @@ export class RoleUsersComponent implements OnInit, OnDestroy, OnChanges { this.loadPending = true; let details = { link: this.link, - email: Composer.composeEmailForMonitorDashboard(this.name, this.invited.value, this.role) + email: this.emailComposer(this.name, this.invited.value, this.role) } this.userRegistryService.invite(this.type, this.id, details, this.role).subscribe(() => { if (!this.pending.includes(this.invited.value)) {