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