mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Filter out projects that have never been updated when user is creating/changing to scm inventory source
This commit is contained in:
parent
ca72c3024f
commit
3623738b05
@ -113,7 +113,7 @@ export default ['$state', '$stateParams', '$scope', 'SourcesFormDefinition',
|
||||
}
|
||||
|
||||
if (source === 'scm') {
|
||||
$scope.projectBasePath = GetBasePath('projects');
|
||||
$scope.projectBasePath = GetBasePath('projects') + '?not__status=never updated';
|
||||
$scope.overwrite_vars = true;
|
||||
$scope.inventory_source_form.inventory_file.$setPristine();
|
||||
} else {
|
||||
|
||||
@ -16,7 +16,7 @@ export default ['$state', '$stateParams', '$scope', 'ParseVariableString',
|
||||
Wait, Rest, Alert) {
|
||||
|
||||
function init() {
|
||||
$scope.projectBasePath = GetBasePath('projects');
|
||||
$scope.projectBasePath = GetBasePath('projects') + '?not__status=never updated';
|
||||
$scope.canAdd = inventorySourcesOptions.actions.POST;
|
||||
// instantiate expected $scope values from inventorySourceData
|
||||
_.assign($scope,
|
||||
|
||||
@ -4,6 +4,7 @@ export default {
|
||||
value: {
|
||||
page_size:"5",
|
||||
order_by:"name",
|
||||
not__status:"never updated",
|
||||
role_level:"use_role",
|
||||
},
|
||||
dynamic:true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user