Skip to content

Commit

Permalink
NodeModel has iFrame as prop
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz committed Oct 27, 2018
1 parent 882ed0b commit 9205f4c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions services/web/client/source/class/qxapp/data/model/NodeModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ qx.Class.define("qxapp.data.model.NodeModel", {
iFrameButton: {
check: "qx.ui.form.Button",
init: null
},

iFrame: {
check: "qx.ui.embed.Iframe",
init: null
}
},

Expand Down Expand Up @@ -246,6 +251,9 @@ qx.Class.define("qxapp.data.model.NodeModel", {
let metaData = this.__metaData;
if (metaData.type == "dynamic") {
const slotName = "startDynamic";

this.setIFrame(new qx.ui.embed.Iframe());

let button = new qx.ui.form.Button().set({
icon: "@FontAwesome5Solid/sign-in-alt/32"
});
Expand All @@ -270,6 +278,9 @@ qx.Class.define("qxapp.data.model.NodeModel", {
if (publishedPort) {
const entryPoint = entryPointD ? ("/" + entryPointD) : "";
const srvUrl = "http://" + window.location.hostname + ":" + publishedPort + entryPoint;

this.getIFrame().setSource(srvUrl);

this.setServiceUrl(srvUrl);
this.getIFrameButton().setEnabled(true);
const msg = "Service ready on " + srvUrl;
Expand Down

0 comments on commit 9205f4c

Please sign in to comment.