1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

bump templates form credential_types page limit

This commit is contained in:
Jake McDermott 2018-01-28 21:18:51 -05:00
parent 42098bfa6d
commit 4c79e6912e
No known key found for this signature in database
GPG Key ID: 3B02CAD476EECB35
3 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
export default ['Rest', 'GetBasePath', 'ProcessErrors',
function(Rest, GetBasePath, ProcessErrors) {
return function() {
return function(params = null) {
Rest.setUrl(GetBasePath('credential_types'));
return Rest.get()
return Rest.get({ params })
.then(({data}) => {
var val = {};
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'),
link: function(scope, element) {
credentialTypesLookup()
credentialTypesLookup({ page_size: 200 })
.then(kinds => {
scope.credentialKinds = kinds;

View File

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