@@ -6,17 +6,17 @@ <h1 translate lib="web">sockets</h1>
66 < section >
77 < div class ="form-group ">
88 < div class ="col-sm-offset-2 col-sm-10 ">
9- < button type ="button " class ="btn btn-secondary " ng-click ="ctrl.GetNoderedInstance() "> Get status </ button >
9+ < button type ="button " class ="btn btn-secondary " ng-click ="ctrl.GetNoderedInstance() "> Reload </ button >
1010 < button type ="button " class ="btn btn-secondary " ng-click ="ctrl.EnsureNoderedInstance() "
11- ng-show ="ctrl.instance==null || ctrl.instancestatus == 'pending deletion (Running)' "> Create Nodered</ button >
11+ 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() "
1313 ng-show ="ctrl.instance!=null && ctrl.instancestatus != 'pending deletion (Running)' && ctrl.instancestatus != 'Pending' "> 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 >
17- < button type ="button " class ="btn btn-secondary "
17+ <!-- < button type="button" class="btn btn-secondary"
1818 ng-show="ctrl.instance!=null && ctrl.instancestatus != 'pending deletion (Running)' && ctrl.instancestatus != 'Pending'"
19- ng-click ="ctrl.GetNoderedInstanceLog() "> Get Console</ button >
19+ ng-click="ctrl.GetNoderedInstanceLog()">Get Console</button> -->
2020
2121 < a ng-href ="{{ctrl.noderedurl}} " class ="btn btn-danger " target ="nodered " ng-show ="ctrl.instance!=null "> Open
2222 Nodered</ a >
@@ -34,14 +34,26 @@ <h1 translate lib="web">sockets</h1>
3434 < span ng-show ="ctrl.instance!=null "> {{ instance.metadata.name }}</ span >
3535 </ div >
3636 < label class ="col-sm-1 control-label "> < span translate lib ="web "> status</ span > : </ label >
37+ < div class ="col-sm-1 ">
38+ < span
39+ ng-show ="ctrl.instance!=null "> {{ (this.instance.metadata.deletionTimestamp != null ? " deleting" : instance.status.phase) }}</ span >
40+ </ div >
41+ < label class ="col-sm-1 control-label "> < span translate lib ="web "> created</ span > : </ label >
42+ < div class ="col-sm-1 ">
43+ < span ng-show ="ctrl.instance!=null ">
44+ < timesince ng-model ="instance.metadata.creationTimestamp " /> </ span >
45+ </ div >
46+ </ div >
47+ < div class ="row ">
48+ < label class ="col-sm-1 control-label "> < span translate lib ="web "> image</ span > : </ label >
3749 < div class ="col ">
38- < span ng-show ="ctrl.instance!=null "> {{ instance.status.phase }}</ span >
50+ < span ng-show ="ctrl.instance!=null "> {{ instance.spec.containers[0].image }}</ span >
3951 </ div >
40- < div class ="col " ng-show ="instance.status.phase == 'Failed' ">
41- <!-- < button type="button" class="btn btn-secondary"
42- ng-click="ctrl.GetNoderedInstanceLog(instance.metadata.name)">Logs</button> -->
43- < button type ="button " class ="btn btn-secondary "
44- ng-click =" ctrl.DeleteNoderedPod( instance.metadata.name) "> Delete</ button >
52+ < div class ="col " ng-show ="instance.status.phase == 'Failed' || instance.status.phase == 'Running' ">
53+ < button type ="button " class ="btn btn-sm btn- secondary " ng-show =" instance.status.phase == 'Running' "
54+ ng-click ="ctrl.GetNoderedInstanceLog(instance.metadata.name) "> Logs</ button >
55+ < button type ="button " class ="btn btn-sm btn- secondary " ng-click =" ctrl.DeleteNoderedPod(instance.metadata.name) "
56+ ng-show =" instance.status.phase == 'Failed' || instance.status.phase == 'Running' "> Delete</ button >
4557 </ div >
4658 </ div >
4759 < div class ="row " ng-show ="instance.status.phase == 'Failed' ">
@@ -50,6 +62,7 @@ <h1 translate lib="web">sockets</h1>
5062 </ div >
5163
5264</ section >
65+
5366< section >
5467 < div class ="form-group ">
5568 < label class ="col-sm-3 control-label "> < span translate lib ="web "> image</ span > : </ label >
0 commit comments