2019-04-08 16:53:09 +02:00
|
|
|
import { Component, Input} from '@angular/core';
|
2020-06-05 14:56:28 +02:00
|
|
|
import {EnvProperties} from "../properties/env-properties";
|
2019-04-08 16:53:09 +02:00
|
|
|
@Component({
|
|
|
|
selector: 'manage',
|
|
|
|
template: `
|
2020-06-05 14:56:28 +02:00
|
|
|
<a *ngIf="communityId" [href]="'https://beta.admin.connect.openaire.eu/dashboard?communityId='+communityId"
|
2020-04-24 18:32:00 +02:00
|
|
|
[class]=" ((buttonSizeSmall)?'uk-button-small':'')+' uk-button portal-button'"
|
2019-04-11 11:36:31 +02:00
|
|
|
target="_blank">
|
2019-04-08 16:53:09 +02:00
|
|
|
Manage
|
|
|
|
</a>
|
2020-06-05 14:56:28 +02:00
|
|
|
<a *ngIf="alias" [href]="properties.baseLink + '/dashboard/admin/' + alias"
|
|
|
|
[class]=" ((buttonSizeSmall)?'uk-button-small':'')+' uk-button portal-button'"
|
|
|
|
target="_blank">
|
|
|
|
Manage
|
|
|
|
</a>
|
2019-04-08 16:53:09 +02:00
|
|
|
`
|
|
|
|
})
|
|
|
|
|
|
|
|
export class ManageComponent {
|
|
|
|
@Input() communityId:string;
|
2020-06-05 14:56:28 +02:00
|
|
|
@Input() alias: string;
|
2019-04-11 11:36:31 +02:00
|
|
|
@Input() buttonSizeSmall = true;
|
2020-06-05 14:56:28 +02:00
|
|
|
@Input() properties: EnvProperties;
|
2019-04-08 16:53:09 +02:00
|
|
|
constructor() {}
|
|
|
|
}
|