From 79a54ffcbc6ebaff61dafd0449f9673409ec95fb Mon Sep 17 00:00:00 2001 From: Konstantinos Triantafyllou Date: Fri, 15 Jan 2021 11:59:28 +0000 Subject: [PATCH] [Monitor Dashboard | Trunk]: Users: Add emailComposer as Function variable git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@60253 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/users/users.component.html | 2 +- src/app/users/users.component.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/users/users.component.html b/src/app/users/users.component.html index 0b6285c..265afc1 100644 --- a/src/app/users/users.component.html +++ b/src/app/users/users.component.html @@ -9,7 +9,7 @@
  • Members
  • - + diff --git a/src/app/users/users.component.ts b/src/app/users/users.component.ts index acae285..4618e42 100644 --- a/src/app/users/users.component.ts +++ b/src/app/users/users.component.ts @@ -3,6 +3,8 @@ import {StakeholderService} from "../openaireLibrary/monitor/services/stakeholde import {properties} from "../../environments/environment"; import {Subscriber} from "rxjs"; import {Title} from "@angular/platform-browser"; +import {Composer} from "../openaireLibrary/utils/email/composer"; +import {Email} from "../openaireLibrary/utils/email/email"; @Component({ selector: 'users', @@ -18,6 +20,9 @@ export class UsersComponent implements OnInit{ public messages: Map<"member" | "manager", string> = new Map<"member"|"manager", string>(); public tab: "manager" | "member" = 'manager'; private subscription; + public emailComposer: Function = (name, recipient, role):Email => { + return Composer.composeEmailForMonitorDashboard(name, recipient, role); + } constructor(private stakeholderService: StakeholderService, private title: Title) {