openaire-library/utils/manage/manage.component.ts

26 lines
852 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.baseLink + '/dashboard/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() {}
}