Skip to content
Snippets Groups Projects
Commit 4b2f7d6f authored by Erik Reid's avatar Erik Reid
Browse files

also show failed tasks

parent 13d7359d
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,20 @@
</table>
</div>
<div class="container p-3 my-3 border" ng-show="failed.length">
<table class="table table-striped" summary="failed tasks">
<tr>
<th>
<button ng-click="show_failed=!show_failed">{{show_failed ? "hide" : "show"}}</button>
</th>
<th scope="col">failed tasks</th>
</tr>
<tr ng-if="show_failed" ng-repeat="description in failed">
<td colspan="2">{{ description }}</td>
</tr>
</table>
</div>
<div class="container p-3 my-3 border" ng-show="pending.length">
<table class="table table-striped" summary="pending tasks">
<tr>
......
......@@ -17,6 +17,7 @@ myApp.controller('update', function($scope, $http, $timeout) {
$scope.show_warnings = true;
$scope.show_errors = true;
$scope.show_pending = true;
$scope.show_failed = true;
$scope.check_status = function() {
......@@ -32,6 +33,8 @@ myApp.controller('update', function($scope, $http, $timeout) {
$scope.latch_error = rsp.data.latch.failure;
if (!$scope.latch_pending) {
$scope.update_request_status = "";
} else {
$scope.update_request_status = "update is running";
}
$timeout($scope.check_status, 5000);
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment