summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.ts
blob: b66008f02256f8e998bcd756eb0a9fbd6c8cba93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import {Component, OnInit, Input} from "@angular/core";
import {Designer} from "app/models";

@Component({
    selector: 'designer-frame',
    templateUrl: './designer-frame.component.html',
    styleUrls:['designer-frame.component.less']
})

export class DesignerFrameComponent implements OnInit {

    @Input() designer: Designer;
    designerUrl: string;

    constructor() {
    }

    ngOnInit(): void {

        this.designerUrl = this.designer.designerProtocol + "://" +
            this.designer.designerHost + ":" +
            this.designer.designerPort +
            this.designer.designerPath;
    }
}