Skip to content

Commit db75587

Browse files
committed
210
1 parent e7fbe71 commit db75587

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

OpenFlow/src/public/Controllers.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,19 +1571,20 @@ module openflow {
15711571
WebSocketClient.onSignedin(async (user: TokenUser) => {
15721572
await api.RegisterQueue();
15731573
this.noderedurl = "https://" + WebSocketClient.nodered_domain_schema.replace("$nodered_id$", WebSocketClient.user.username);
1574-
this.GetNoderedInstance();
1574+
// this.GetNoderedInstance();
1575+
setTimeout(this.GetNoderedInstance.bind(this), 2000);
15751576
});
15761577
}
15771578
async GetNoderedInstance() {
15781579
try {
15791580
this.instance = await this.api.GetNoderedInstance();
15801581
console.log("GetNoderedInstance:");
15811582
console.log(this.instance);
1582-
if (this.instance !== null && this.instance !== undefined) {
1583-
this.messages += "GetNoderedInstance completed, status " + this.instance.status.phase + "\n";
1584-
} else {
1585-
this.messages += "GetNoderedInstance completed, status unknown/not existing" + "\n";
1586-
}
1583+
// if (this.instance !== null && this.instance !== undefined) {
1584+
// this.messages += "GetNoderedInstance completed, status " + this.instance.status.phase + "\n";
1585+
// } else {
1586+
// this.messages += "GetNoderedInstance completed, status unknown/non existent" + "\n";
1587+
// }
15871588
} catch (error) {
15881589
this.messages += error + "\n";
15891590
console.error(error);

OpenFlow/src/public/Nodered.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ <h1 translate lib="web">sockets</h1>
1616
</div>
1717
</section>
1818
</form>
19-
<section ng-repeat="key in ctrl.keys">
19+
<section>
2020
<div class="form-group">
2121
<label class="col-sm-3 control-label"><span translate lib="web">status</span>: </label>
2222
<div class="col-sm-9">
23-
<span ng-show="ctrl.instance==null">Not created</span>
23+
<span ng-show="ctrl.instance==null">unknown/non existent</span>
2424
<span ng-show="ctrl.instance!=null">{{ ctrl.instance.status.phase }}</span>
2525
</div>
2626
</div>

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.209
1+
0.0.210

0 commit comments

Comments
 (0)