Skip to content

Commit 89fe18d

Browse files
committed
improve button login on nodered
1 parent 05b9fe7 commit 89fe18d

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

OpenFlow/src/public/Controllers.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,6 +2418,7 @@ module openflow {
24182418
console.error(error);
24192419
}
24202420
if (!this.$scope.$$phase) { this.$scope.$apply(); }
2421+
this.GetNoderedInstance();
24212422
}
24222423
async DeleteNoderedInstance() {
24232424
try {
@@ -2428,6 +2429,7 @@ module openflow {
24282429
console.error(error);
24292430
}
24302431
if (!this.$scope.$$phase) { this.$scope.$apply(); }
2432+
this.GetNoderedInstance();
24312433
}
24322434
async RestartNoderedInstance() {
24332435
try {
@@ -2438,6 +2440,7 @@ module openflow {
24382440
console.error(error);
24392441
}
24402442
if (!this.$scope.$$phase) { this.$scope.$apply(); }
2443+
this.GetNoderedInstance();
24412444
}
24422445
async StartNoderedInstance() {
24432446
try {
@@ -2448,6 +2451,7 @@ module openflow {
24482451
console.error(error);
24492452
}
24502453
if (!this.$scope.$$phase) { this.$scope.$apply(); }
2454+
this.GetNoderedInstance();
24512455
}
24522456
async StopNoderedInstance() {
24532457
try {
@@ -2458,6 +2462,7 @@ module openflow {
24582462
console.error(error);
24592463
}
24602464
if (!this.$scope.$$phase) { this.$scope.$apply(); }
2465+
this.GetNoderedInstance();
24612466
}
24622467

24632468
async submit() {

OpenFlow/src/public/Nodered.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h1 translate lib="web">sockets</h1>
1010
<button type="button" class="btn btn-secondary" ng-click="ctrl.EnsureNoderedInstance()"
1111
ng-show="ctrl.instance==null || ctrl.instancestatus == 'pending deletion (Running)' ">Create Nodered</button>
1212
<button type="button" class="btn btn-secondary" ng-click="ctrl.RestartNoderedInstance()"
13-
ng-show="ctrl.instance!=null">Restart
13+
ng-show="ctrl.instance!=null && ctrl.instancestatus != 'pending deletion (Running)'">Restart
1414
Nodered</button>
1515
<button type="button" class="btn btn-secondary" ng-click="ctrl.DeleteNoderedInstance()"
1616
ng-show="ctrl.instance!=null && ctrl.instancestatus != 'pending deletion (Running)' ">Delete Nodered</button>

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.424
1+
0.0.425

0 commit comments

Comments
 (0)