Merge pull request #2595 from jaredevantabor/dash-pro-sync-failures

fixing project view of failed syncs from dash
This commit is contained in:
Jared Tabor 2016-06-23 09:34:00 -07:00 committed by GitHub
commit d9f8788fd7
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;