[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
This commit is contained in:
parent
921d30d790
commit
79a54ffcbc
|
@ -9,7 +9,7 @@
|
|||
<li [class.uk-active]="tab === 'member'"><a (click)="changeTab('member')"><span class="title">Members</span></a></li>
|
||||
</ul>
|
||||
</ng-template>
|
||||
<role-users *ngIf="!loading && alias" [id]="alias" [type]="type" [name]="name" [link]="link" [role]="tab" [message]="messages.get(tab)">
|
||||
<role-users *ngIf="!loading && alias" [id]="alias" [type]="type" [name]="name" [link]="link" [role]="tab" [message]="messages.get(tab)" [emailComposer]="emailComposer">
|
||||
<ng-container [ngTemplateOutlet]="tabs"></ng-container>
|
||||
</role-users>
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue