fixing project view of failed syncs from dash

to include failed jobs and canceled jobs
This commit is contained in:
Jared Tabor 2016-06-22 19:26:28 -07:00
parent a9162278f8
commit 862dc458c6
3 changed files with 4 additions and 3 deletions

View File

@ -22,7 +22,7 @@ export function ProjectsList ($scope, $rootScope, $location, $log, $stateParams,
Wait('start');
var list = ProjectList,
defaultUrl = GetBasePath('projects') + ($stateParams.status ? '?status=' + $stateParams.status : ''),
defaultUrl = GetBasePath('projects') + ($stateParams.status ? '?status__in=' + $stateParams.status : ''),
view = GenerateList,
base = $location.path().replace(/^\//, '').split('/')[0],
mode = (base === 'projects') ? 'edit' : 'select',

View File

@ -60,7 +60,7 @@ export default
label: "Projects"
},
{
url: "/#/projects?status=failed",
url: "/#/projects?status=failed,canceled",
number: scope.data.projects.failed,
label: "Project Sync Failures",
isFailureCount: true

View File

@ -3,7 +3,7 @@
*
* All Rights Reserved
*************************************************/
/**
* @ngdoc function
* @name helpers.function:Projects
@ -41,6 +41,7 @@ export default
break;
case 'failed':
case 'missing':
case 'canceled':
result = 'error';
}
return result;