mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 11:55:04 -02:30
Merge pull request #3012 from mabashian/scm-update-schedule-button
Disabled but clickable schedule action icon during scm update
This commit is contained in:
@@ -358,11 +358,8 @@ export function ProjectsList ($scope, $rootScope, $location, $log, $stateParams,
|
|||||||
|
|
||||||
$scope.editSchedules = function(id) {
|
$scope.editSchedules = function(id) {
|
||||||
var project = Find({ list: $scope.projects, key: 'id', val: id });
|
var project = Find({ list: $scope.projects, key: 'id', val: id });
|
||||||
if (project.scm_type === "Manual" || Empty(project.scm_type)) {
|
if (!(project.scm_type === "Manual" || Empty(project.scm_type)) && !(project.status === 'updating' || project.status === 'running' || project.status === 'pending')) {
|
||||||
// Nothing to do
|
$state.go('projectSchedules', {id: id});
|
||||||
}
|
|
||||||
else {
|
|
||||||
$location.path('/projects/' + id + '/schedules');
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -334,11 +334,8 @@ export default ['$scope', '$rootScope', '$location', '$log',
|
|||||||
|
|
||||||
$scope.editSchedules = function(id) {
|
$scope.editSchedules = function(id) {
|
||||||
var project = Find({ list: $scope.projects, key: 'id', val: id });
|
var project = Find({ list: $scope.projects, key: 'id', val: id });
|
||||||
if (project.scm_type === "Manual" || Empty(project.scm_type)) {
|
if (!(project.scm_type === "Manual" || Empty(project.scm_type)) && !(project.status === 'updating' || project.status === 'running' || project.status === 'pending')) {
|
||||||
// Nothing to do
|
$state.go('projectSchedules', {id: id});
|
||||||
}
|
|
||||||
else {
|
|
||||||
$location.path('/projects/' + id + '/schedules');
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user