Skip to content

Commit

Permalink
Merge pull request #15 from odeimaiz/feature/prj_model_w_server
Browse files Browse the repository at this point in the history
Feature/prj model w server
  • Loading branch information
sanderegg authored Sep 13, 2018
2 parents 58bab7a + 87be32b commit e10ed0c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ qx.Class.define("qxapp.components.workbench.NodeBase", {
"LinkDragOver": "qx.event.type.Data",
"LinkDrop": "qx.event.type.Data",
"LinkDragEnd": "qx.event.type.Data",
"NodeMoving": "qx.event.type.Event"
"NodeMoving": "qx.event.type.Event",
"ShowViewer": "qx.event.type.Data"
},

members: {
Expand Down Expand Up @@ -217,7 +218,7 @@ qx.Class.define("qxapp.components.workbench.NodeBase", {
viewerButton: button
});
button.addListener("execute", function(e) {
this.getPropsWidget().fireDataEvent("ShowViewer", {
this.fireDataEvent("ShowViewer", {
url: srvUrl,
name: metaData.name,
nodeId: this.getNodeId()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,10 @@ qx.Class.define("qxapp.components.workbench.SettingsView", {
this.__dynamicViewer.removeAll();
let viewerButton = node.getViewerButton();
if (viewerButton) {
if (!viewerButton.hasListener("execute")) {
viewerButton.addListener("execute", function(e) {
const data = {
metadata: node.getMetaData(),
nodeId: node.getNodeId()
};
console.log("ShowViewer", data);
this.fireDataEvent("ShowViewer", data);
}, this);
}
node.addListener("ShowViewer", function(e) {
const data = e.getData();
this.fireDataEvent("ShowViewer", data);
}, this);
this.__dynamicViewer.add(viewerButton);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ qx.Class.define("qxapp.components.workbench.logger.LoggerView", {

__createInitMsg: function() {
const who = "System";
const what = "Logger intialized";
const what = "Logger initialized";
this.debug(who, what);
},

Expand Down
4 changes: 4 additions & 0 deletions services/web/client/source/class/qxapp/data/Store.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ qx.Class.define("qxapp.data.Store", {
},

getNodeMetaDataFromCache: function(nodeImageId) {
let metadata = this.getNodeMetaData(nodeImageId);
if (metadata) {
return metadata;
}
let services = this.__servicesCacheBuiltIn.concat(this.__servicesCacheComputational);
services = services.concat(this.__servicesCacheInteractive);
for (let i=0; i<services.length; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ qx.Class.define("qxapp.desktop.PrjEditor", {

// Workaround for updating inputs
if (data.name === "3d-viewer") {
let urlUpdate = "http://" + window.location.hostname + ":" + data.viewer.port + "/retrieve";
let urlUpdate = data.url + "/retrieve";
let req = new qx.io.request.Xhr();
req.set({
url: urlUpdate,
Expand Down

0 comments on commit e10ed0c

Please sign in to comment.