mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 13:25:02 -02:30
include workflows on dashboard recent job runs list
This commit is contained in:
@@ -38,7 +38,7 @@ export function Home($scope, $compile, $stateParams, $rootScope, $location, $log
|
|||||||
ProcessErrors($scope, data, status, null, { hdr: 'Error!', msg: 'Failed to get dashboard host graph data: ' + status });
|
ProcessErrors($scope, data, status, null, { hdr: 'Error!', msg: 'Failed to get dashboard host graph data: ' + status });
|
||||||
});
|
});
|
||||||
|
|
||||||
Rest.setUrl(GetBasePath("jobs") + "?order_by=-finished&page_size=5&finished__isnull=false");
|
Rest.setUrl("api/v1/unified_jobs?order_by=-finished&page_size=5&finished__isnull=false&type=workflow_job,job");
|
||||||
Rest.get()
|
Rest.get()
|
||||||
.success(function (data) {
|
.success(function (data) {
|
||||||
$scope.dashboardJobsListData = data.results;
|
$scope.dashboardJobsListData = data.results;
|
||||||
@@ -114,7 +114,7 @@ export function Home($scope, $compile, $stateParams, $rootScope, $location, $log
|
|||||||
.error(function (data, status) {
|
.error(function (data, status) {
|
||||||
ProcessErrors($scope, data, status, null, { hdr: 'Error!', msg: 'Failed to get dashboard: ' + status });
|
ProcessErrors($scope, data, status, null, { hdr: 'Error!', msg: 'Failed to get dashboard: ' + status });
|
||||||
});
|
});
|
||||||
Rest.setUrl(GetBasePath("jobs") + "?order_by=-finished&page_size=5&finished__isnull=false");
|
Rest.setUrl("api/v1/unified_jobs?order_by=-finished&page_size=5&finished__isnull=false&type=workflow_job,job");
|
||||||
Rest.get()
|
Rest.get()
|
||||||
.success(function (data) {
|
.success(function (data) {
|
||||||
data = data.results;
|
data = data.results;
|
||||||
|
|||||||
Reference in New Issue
Block a user