26 lines
862 B
TypeScript
26 lines
862 B
TypeScript
import { Component, Input} from '@angular/core';
|
|
import {EnvProperties} from "../properties/env-properties";
|
|
@Component({
|
|
selector: 'manage',
|
|
template: `
|
|
<a *ngIf="communityId" [href]="'https://beta.admin.connect.openaire.eu/dashboard?communityId='+communityId"
|
|
[class]=" ((buttonSizeSmall)?'uk-button-small':'')+' uk-button portal-button'"
|
|
target="_blank">
|
|
Manage
|
|
</a>
|
|
<a *ngIf="alias" [href]="properties.domain + properties.baseLink + '/admin/' + alias"
|
|
[class]=" ((buttonSizeSmall)?'uk-button-small':'')+' uk-button portal-button'"
|
|
target="_blank">
|
|
Manage
|
|
</a>
|
|
`
|
|
})
|
|
|
|
export class ManageComponent {
|
|
@Input() communityId:string;
|
|
@Input() alias: string;
|
|
@Input() buttonSizeSmall = true;
|
|
@Input() properties: EnvProperties;
|
|
constructor() {}
|
|
}
|