Merge pull request #6700 from mabashian/6699-credential_type-tag

Added credential_type as a default search param to projects credential
This commit is contained in:
Michael Abashian 2017-06-23 12:54:39 -04:00 committed by GitHub
commit d770156640
2 changed files with 4 additions and 5 deletions

View File

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

View File

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