Merge pull request #623 from jakemcdermott/fix-ansible-tower-7871

bump templates form credential_types page limit
This commit is contained in:
Jake McDermott
2018-01-30 14:48:36 -05:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
export default ['Rest', 'GetBasePath', 'ProcessErrors', export default ['Rest', 'GetBasePath', 'ProcessErrors',
function(Rest, GetBasePath, ProcessErrors) { function(Rest, GetBasePath, ProcessErrors) {
return function() { return function(params = null) {
Rest.setUrl(GetBasePath('credential_types')); Rest.setUrl(GetBasePath('credential_types'));
return Rest.get() return Rest.get({ params })
.then(({data}) => { .then(({data}) => {
var val = {}; var val = {};
data.results.forEach(type => { data.results.forEach(type => {

View File

@@ -10,7 +10,7 @@ export default ['templateUrl', 'Rest', 'GetBasePath', 'generateList', '$compile'
templateUrl: templateUrl('templates/job_templates/multi-credential/multi-credential-modal'), templateUrl: templateUrl('templates/job_templates/multi-credential/multi-credential-modal'),
link: function(scope, element) { link: function(scope, element) {
credentialTypesLookup() credentialTypesLookup({ page_size: 200 })
.then(kinds => { .then(kinds => {
scope.credentialKinds = kinds; scope.credentialKinds = kinds;

View File

@@ -77,7 +77,7 @@ export default ['Rest', 'ProcessErrors', '$q', 'GetBasePath', function(Rest, Pro
// credential type selector // credential type selector
val.getCredentialTypes = () => { val.getCredentialTypes = () => {
Rest.setUrl(GetBasePath('credential_types')); Rest.setUrl(GetBasePath('credential_types'));
return Rest.get() return Rest.get({ params: { page_size: 200 }})
.then(({data}) => { .then(({data}) => {
let credential_types = {}, credentialTypeOptions = []; let credential_types = {}, credentialTypeOptions = [];