mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Merge pull request #6848 from mabashian/6825-aws-credential-select
Fixed credential kind lookup on inventory source
This commit is contained in:
commit
7f5a45f2fe
@ -99,10 +99,10 @@ export default ['$state', '$stateParams', '$scope', 'SourcesFormDefinition',
|
||||
}
|
||||
|
||||
$scope.lookupCredential = function(){
|
||||
let kind = ($scope.source.value === "ec2") ? "aws" : $scope.source.value;
|
||||
$state.go('.credential', {
|
||||
credential_search: {
|
||||
// TODO: get kind sorting for credential properly implemented
|
||||
// kind: kind,
|
||||
kind: kind,
|
||||
page_size: '5',
|
||||
page: '1'
|
||||
}
|
||||
|
||||
@ -274,17 +274,6 @@ export default ['$state', '$stateParams', '$scope', 'ParseVariableString',
|
||||
});
|
||||
}
|
||||
|
||||
$scope.lookupCredential = function(){
|
||||
$state.go('.credential', {
|
||||
credential_search: {
|
||||
// TODO: get kind sorting for credential properly implemented
|
||||
// kind: kind,
|
||||
page_size: '5',
|
||||
page: '1'
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
$scope.lookupProject = function(){
|
||||
$state.go('.project', {
|
||||
project_search: {
|
||||
|
||||
@ -5,6 +5,7 @@ export default {
|
||||
page_size:"5",
|
||||
order_by:"name",
|
||||
role_level:"use_role",
|
||||
kind: null
|
||||
},
|
||||
dynamic:true,
|
||||
squash:""
|
||||
|
||||
@ -123,8 +123,6 @@ return {
|
||||
ngOptions: 'source.label for source in source_region_choices track by source.value',
|
||||
multiSelect: true,
|
||||
ngShow: "source && (source.value == 'rax' || source.value == 'ec2' || source.value == 'gce' || source.value == 'azure' || source.value == 'azure_rm')",
|
||||
|
||||
|
||||
dataTitle: 'Source Regions',
|
||||
dataPlacement: 'right',
|
||||
awPopOver: "<p>Click on the regions field to see a list of regions for your cloud provider. You can select multiple regions, " +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user