[Fix] Updated to observer 0.2.0
This commit is contained in:
parent
99ef439401
commit
310dc03e40
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "strolch-wc-plc",
|
||||
"description": "Strolch PLC WebComponents",
|
||||
"version": "0.2.1",
|
||||
"version": "0.3.0",
|
||||
"authors": ["Robert von Burg"],
|
||||
"keywords": [
|
||||
"strolch",
|
||||
|
@ -17,11 +17,11 @@
|
|||
"homepage": "https://github.com/4treesCH/strolch-wc-plc",
|
||||
"ignore": [],
|
||||
"dependencies": {
|
||||
"strolchjs": "4treesCH/strolchjs#^0.2.7",
|
||||
"strolchjs": "4treesCH/strolchjs#^0.2.8",
|
||||
"strolch-wc-styles": "4treesCH/strolch-wc-styles#^0.3.0",
|
||||
"strolch-wc-debounced-input": "4treesCH/strolch-wc-debounced-input#^0.1.0",
|
||||
"strolch-wc-tree": "4treesCH/strolch-wc-tree#^0.1.5",
|
||||
"strolch-wc-ws-observer": "4treesCH/strolch-wc-ws-observer#^0.1.5",
|
||||
"strolch-wc-ws-observer": "4treesCH/strolch-wc-ws-observer#^0.2.0",
|
||||
"strolch-wc-localize-behavior": "4treesCH/strolch-wc-localize-behavior#^1.1.4",
|
||||
|
||||
"polymer": "Polymer/polymer#^1.11.3",
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
on-response="onGetDevicesResponse"
|
||||
on-error="onRequestError"></iron-ajax>
|
||||
|
||||
<strolch-wc-ws-observer id="observerHandler" ws-path="[[wsObserverPath]]"></strolch-wc-ws-observer>
|
||||
<strolch-wc-ws-observer id="observerHandler" ws-path="[[baseWsPath]]/plc/observer"></strolch-wc-ws-observer>
|
||||
|
||||
</template>
|
||||
|
||||
|
@ -99,12 +99,6 @@
|
|||
devicesByGroup: {
|
||||
type: Array,
|
||||
value: []
|
||||
},
|
||||
wsObserverPath: {
|
||||
type: String,
|
||||
value: function () {
|
||||
return CustomWeb.baseWsPath + "/plc/observer";
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -118,7 +112,7 @@
|
|||
this.$.ajaxGetDevices.generateRequest();
|
||||
|
||||
if (!this.registeredForUpdates) {
|
||||
this.$.observerHandler.register("Resource", "PlcAddress", "strolch-wc-plc-logical-devices", true, this.handleUpdate.bind(this));
|
||||
this.$.observerHandler.register("Resource", "PlcAddress", "strolch-wc-plc-logical-devices", {flat: true}, this.handleUpdate.bind(this));
|
||||
this.registeredForUpdates = true;
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue