|
189 | 189 | applicationname: { value: "", required: true }, |
190 | 190 | }, |
191 | 191 | credentials: { |
192 | | - clientid: { type: "password" }, |
193 | | - clientsecret: { type: "password" } |
| 192 | + clientid: { type: "password", required: true }, |
| 193 | + clientsecret: { type: "password", required: true } |
194 | 194 | }, |
195 | 195 | label: function () { |
196 | 196 | return this.applicationname || ""; |
|
257 | 257 | }, |
258 | 258 | paletteLabel: "historic", |
259 | 259 | oneditprepare: function () { |
| 260 | + debugger; |
260 | 261 | console.log("thing_id: " + this.thing); |
261 | 262 | console.log("property_id: " + this.property); |
262 | | - if (this.connection) { |
| 263 | + if (this.connection && this.connection !== "_ADD_") { |
263 | 264 | initThings(this.connection, this.thing); |
264 | 265 | initProperties(this.connection, this.thing, this.property, 1); |
265 | 266 | } |
|
373 | 374 | oneditprepare: function () { |
374 | 375 | console.log("thing_id: " + this.thing); |
375 | 376 | console.log("property_id: " + this.property); |
376 | | - if (this.connection) { |
| 377 | + if (this.connection && this.connection !== "_ADD_") { |
377 | 378 | initThings(this.connection, this.thing); |
378 | 379 | initProperties(this.connection, this.thing, this.property, 1); |
379 | 380 | } |
|
484 | 485 | oneditprepare: function () { |
485 | 486 | console.log("thing_id: " + this.thing); |
486 | 487 | console.log("property_id: " + this.property); |
487 | | - if (this.connection) { |
| 488 | + if (this.connection && this.connection !== "_ADD_") { |
488 | 489 | initThings(this.connection, this.thing); |
489 | 490 | initProperties(this.connection, this.thing, this.property, 1); |
490 | 491 | } |
|
0 commit comments