Fixed project status mismatch.

This commit is contained in:
Chris Houseknecht 2014-04-01 12:57:34 -04:00
parent 6b3d5da500
commit 9efa5e28ce
2 changed files with 3 additions and 3 deletions

View File

@ -337,7 +337,7 @@ function ProjectsList ($scope, $rootScope, $location, $log, $routeParams, Rest,
// Do not respond. Button appears greyed out as if it is disabled. Not disabled though, because we need mouse over event
// to work. So user can click, but we just won't do anything.
//Alert('Missing SCM Setup', 'Before running an SCM update, edit the project and provide the SCM access information.', 'alert-info');
} else if (project.status === 'updating') {
} else if (project.status === 'updating' || project.status === 'running') {
Alert('Update in Progress', 'The SCM update process is running. Use the Refresh button to monitor the status.', 'alert-info');
} else {
ProjectUpdate({ scope: $scope, project_id: project.id });

View File

@ -109,13 +109,13 @@ angular.module('ProjectsListDefinition', [])
"delete": {
ngClick: "deleteProject(project.id, project.name)",
awToolTip: 'Delete the project',
ngShow: "project.status !== 'updating'",
ngShow: "project.status !== 'updating' && project.status !== 'running'",
dataPlacement: 'top'
},
cancel: {
ngClick: "cancelUpdate(project.id, project.name)",
awToolTip: 'Cancel the SCM update',
ngShow: "project.status == 'updating'",
ngShow: "project.status == 'updating' || project.status == 'running'",
dataPlacement: 'top'
}
}