From 937c85e89e6601e8ecac1000906158eb077e7378 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Fri, 23 Jun 2017 10:25:59 -0400 Subject: [PATCH] Added credential_type as a default search param to project.credential. Removed leftover console.log --- awx/ui/client/src/projects/projects.form.js | 7 +++---- awx/ui/client/src/shared/directives.js | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/awx/ui/client/src/projects/projects.form.js b/awx/ui/client/src/projects/projects.form.js index ebfbcd97c0..c4c576aafb 100644 --- a/awx/ui/client/src/projects/projects.form.js +++ b/awx/ui/client/src/projects/projects.form.js @@ -130,10 +130,9 @@ export default ['i18n', 'NotificationsList', function(i18n, NotificationsList) { type: 'lookup', basePath: 'credentials', list: 'CredentialList', - // apply a default search filter to show only scm credentials - // search: { - // kind: 'scm' - // }, + search: { + "credential_type": null + }, ngClick: 'lookupCredential()', awRequiredWhen: { reqExpression: "credRequired", diff --git a/awx/ui/client/src/shared/directives.js b/awx/ui/client/src/shared/directives.js index b9d2836f1b..fbf4301f06 100644 --- a/awx/ui/client/src/shared/directives.js +++ b/awx/ui/client/src/shared/directives.js @@ -533,7 +533,7 @@ function(ConfigurationUtils, i18n, $rootScope) { } else { basePath = GetBasePath(elm.attr('data-basePath')) || elm.attr('data-basePath'); - let switchType = attrs.awlookuptype ? attrs.awlookuptype : modelName;console.log(switchType); + let switchType = attrs.awlookuptype ? attrs.awlookuptype : modelName; switch(switchType) { case 'credential':