mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 05:15:02 -02:30
fixing project view of failed syncs from dash
to include failed jobs and canceled jobs
This commit is contained in:
@@ -22,7 +22,7 @@ export function ProjectsList ($scope, $rootScope, $location, $log, $stateParams,
|
|||||||
Wait('start');
|
Wait('start');
|
||||||
|
|
||||||
var list = ProjectList,
|
var list = ProjectList,
|
||||||
defaultUrl = GetBasePath('projects') + ($stateParams.status ? '?status=' + $stateParams.status : ''),
|
defaultUrl = GetBasePath('projects') + ($stateParams.status ? '?status__in=' + $stateParams.status : ''),
|
||||||
view = GenerateList,
|
view = GenerateList,
|
||||||
base = $location.path().replace(/^\//, '').split('/')[0],
|
base = $location.path().replace(/^\//, '').split('/')[0],
|
||||||
mode = (base === 'projects') ? 'edit' : 'select',
|
mode = (base === 'projects') ? 'edit' : 'select',
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export default
|
|||||||
label: "Projects"
|
label: "Projects"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: "/#/projects?status=failed",
|
url: "/#/projects?status=failed,canceled",
|
||||||
number: scope.data.projects.failed,
|
number: scope.data.projects.failed,
|
||||||
label: "Project Sync Failures",
|
label: "Project Sync Failures",
|
||||||
isFailureCount: true
|
isFailureCount: true
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* All Rights Reserved
|
* All Rights Reserved
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ngdoc function
|
* @ngdoc function
|
||||||
* @name helpers.function:Projects
|
* @name helpers.function:Projects
|
||||||
@@ -41,6 +41,7 @@ export default
|
|||||||
break;
|
break;
|
||||||
case 'failed':
|
case 'failed':
|
||||||
case 'missing':
|
case 'missing':
|
||||||
|
case 'canceled':
|
||||||
result = 'error';
|
result = 'error';
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user