1
|
import { Component, Input} from '@angular/core';
|
2
|
import {EnvProperties} from "../properties/env-properties";
|
3
|
@Component({
|
4
|
selector: 'manage',
|
5
|
template: `
|
6
|
<a *ngIf="communityId" [href]="'https://beta.admin.connect.openaire.eu/dashboard?communityId='+communityId"
|
7
|
[class]=" ((buttonSizeSmall)?'uk-button-small':'')+' uk-button portal-button'"
|
8
|
target="_blank">
|
9
|
Manage
|
10
|
</a>
|
11
|
<a *ngIf="alias" [href]="properties.baseLink + '/dashboard/admin/' + alias"
|
12
|
[class]=" ((buttonSizeSmall)?'uk-button-small':'')+' uk-button portal-button'"
|
13
|
target="_blank">
|
14
|
Manage
|
15
|
</a>
|
16
|
`
|
17
|
})
|
18
|
|
19
|
export class ManageComponent {
|
20
|
@Input() communityId:string;
|
21
|
@Input() alias: string;
|
22
|
@Input() buttonSizeSmall = true;
|
23
|
@Input() properties: EnvProperties;
|
24
|
constructor() {}
|
25
|
}
|