summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/ng2')
-rw-r--r--catalog-ui/src/app/ng2/components/ui/designer/designer-frame.component.ts13
1 files changed, 13 insertions, 0 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
index b66008f022..b52696a287 100644
--- 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
@@ -1,4 +1,5 @@
import {Component, OnInit, Input} from "@angular/core";
+import { URLSearchParams } from '@angular/http';
import {Designer} from "app/models";
@Component({
@@ -10,9 +11,12 @@ import {Designer} from "app/models";
export class DesignerFrameComponent implements OnInit {
@Input() designer: Designer;
+ @Input() queryParams: Object;
designerUrl: string;
+ private urlSearchParams: URLSearchParams;
constructor() {
+ this.urlSearchParams = new URLSearchParams();
}
ngOnInit(): void {
@@ -21,5 +25,14 @@ export class DesignerFrameComponent implements OnInit {
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();
+ }
}
}