Project

General

Profile

1 55234 k.triantaf
import { Component, Input} from '@angular/core';
2 58860 k.triantaf
import {EnvProperties} from "../properties/env-properties";
3 60228 k.triantaf
import {properties} from "../../../../environments/environment";
4 55234 k.triantaf
@Component({
5
    selector: 'manage',
6
    template: `
7 60040 argiro.kok
        <a *ngIf="communityId" [href]="properties.adminPortalURL + '/dashboard?communityId='+communityId"
8 58547 k.triantaf
        [class]=" ((buttonSizeSmall)?'uk-button-small':'')+' uk-button portal-button'"
9 55270 argiro.kok
         target="_blank">
10 55234 k.triantaf
            Manage
11
        </a>
12 59791 k.triantaf
        <a *ngIf="alias" [href]="properties.domain + properties.baseLink + '/dashboard/admin/' + alias"
13 58860 k.triantaf
           [class]=" ((buttonSizeSmall)?'uk-button-small':'')+' uk-button portal-button'"
14
           target="_blank">
15
          Manage
16
        </a>
17 55234 k.triantaf
    `
18
})
19
20
export class ManageComponent {
21
   @Input() communityId:string;
22 58860 k.triantaf
   @Input() alias: string;
23 55270 argiro.kok
   @Input() buttonSizeSmall = true;
24 60228 k.triantaf
   properties: EnvProperties = properties;
25 55234 k.triantaf
   constructor() {}
26
}