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";
|
2021-01-13 17:10:05 +01:00
|
|
|
import {properties} from "../../../../environments/environment";
|
2019-04-08 16:53:09 +02:00
|
|
|
@Component({
|
|
|
|
selector: 'manage',
|
|
|
|
template: `
|
2021-02-25 15:19:59 +01:00
|
|
|
<a *ngIf="communityId" [href]="properties.adminPortalURL + '/' + 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-11-06 10:18:55 +01:00
|
|
|
<a *ngIf="alias" [href]="properties.domain + properties.baseLink + '/dashboard/admin/' + alias"
|
2020-06-05 14:56:28 +02:00
|
|
|
[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;
|
2021-01-13 17:10:05 +01:00
|
|
|
properties: EnvProperties = properties;
|
2019-04-08 16:53:09 +02:00
|
|
|
constructor() {}
|
|
|
|
}
|