Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inventory-provider
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
dashboardv3
inventory-provider
Commits
4b2f7d6f
Commit
4b2f7d6f
authored
4 years ago
by
Erik Reid
Browse files
Options
Downloads
Patches
Plain Diff
also show failed tasks
parent
13d7359d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inventory_provider/static/update.html
+14
-0
14 additions, 0 deletions
inventory_provider/static/update.html
inventory_provider/static/update.js
+3
-0
3 additions, 0 deletions
inventory_provider/static/update.js
with
17 additions
and
0 deletions
inventory_provider/static/update.html
+
14
−
0
View file @
4b2f7d6f
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
inventory_provider/static/update.js
+
3
−
0
View file @
4b2f7d6f
...
...
@@ -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
);
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment