Merge pull request #6848 from mabashian/6825-aws-credential-select

Fixed credential kind lookup on inventory source
This commit is contained in:
Michael Abashian 2017-07-01 22:09:05 -04:00 committed by GitHub
commit 7f5a45f2fe
4 changed files with 3 additions and 15 deletions

View File

@ -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'
}

View File

@ -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: {

View File

@ -5,6 +5,7 @@ export default {
page_size:"5",
order_by:"name",
role_level:"use_role",
kind: null
},
dynamic:true,
squash:""

View File

@ -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, " +