mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 10:11:05 -03:30
Limit the cred types that we show when adding creds to JT
This commit is contained in:
@@ -100,7 +100,14 @@ function multiCredentialModalController(GetBasePath, qs, MultiCredentialService)
|
||||
scope.credentials = scope.credential_dataset.results;
|
||||
|
||||
scope.credentialType = getInitialCredentialType();
|
||||
scope.displayedCredentialTypes = scope.credentialTypes;
|
||||
scope.displayedCredentialTypes = [];
|
||||
|
||||
scope.credentialTypes.forEach((credentialType => {
|
||||
if(credentialType.kind
|
||||
.match(/^(machine|cloud|net|ssh|vault)$/)) {
|
||||
scope.displayedCredentialTypes.push(credentialType);
|
||||
}
|
||||
}));
|
||||
|
||||
const watchType = scope.$watch('credentialType', (newValue, oldValue) => {
|
||||
if (newValue !== oldValue) {
|
||||
|
||||
Reference in New Issue
Block a user