Project

General

Profile

1
import { Component, Input} from '@angular/core';
2
import {EnvProperties} from "../properties/env-properties";
3
import {properties} from "../../../../environments/environment";
4
@Component({
5
    selector: 'manage',
6
    template: `
7
        <a *ngIf="communityId" [href]="properties.adminPortalURL + '/' + communityId"
8
        [class]=" ((buttonSizeSmall)?'uk-button-small':'')+' uk-button portal-button'"
9
         target="_blank">
10
            Manage
11
        </a>
12
        <a *ngIf="alias" [href]="properties.domain + properties.baseLink + '/dashboard/admin/' + alias"
13
           [class]=" ((buttonSizeSmall)?'uk-button-small':'')+' uk-button portal-button'"
14
           target="_blank">
15
          Manage
16
        </a>
17
    `
18
})
19

    
20
export class ManageComponent {
21
   @Input() communityId:string;
22
   @Input() alias: string;
23
   @Input() buttonSizeSmall = true;
24
   properties: EnvProperties = properties;
25
   constructor() {}
26
}
(1-1/2)