mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Fixed project status mismatch.
This commit is contained in:
parent
6b3d5da500
commit
9efa5e28ce
@ -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 });
|
||||
|
||||
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user