summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.ts')
-rw-r--r--catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.ts38
1 files changed, 0 insertions, 38 deletions
diff --git a/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.ts b/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.ts
deleted file mode 100644
index b52696a287..0000000000
--- a/catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import {Component, OnInit, Input} from "@angular/core";
-import { URLSearchParams } from '@angular/http';
-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;
- @Input() queryParams: Object;
- designerUrl: string;
- private urlSearchParams: URLSearchParams;
-
- constructor() {
- this.urlSearchParams = new URLSearchParams();
- }
-
- ngOnInit(): void {
-
- this.designerUrl = this.designer.designerProtocol + "://" +
- this.designer.designerHost + ":" +
- this.designer.designerPort +
- this.designer.designerPath;
-
- if (this.queryParams && !_.isEmpty(this.queryParams)) {
- _.forOwn(this.queryParams, (value, key) => {
- this.urlSearchParams.set(key, value);
- });
-
- this.designerUrl += '?';
- this.designerUrl += this.urlSearchParams.toString();
- }
- }
-}