mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 05:45:02 -02: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.credentials = scope.credential_dataset.results;
|
||||||
|
|
||||||
scope.credentialType = getInitialCredentialType();
|
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) => {
|
const watchType = scope.$watch('credentialType', (newValue, oldValue) => {
|
||||||
if (newValue !== oldValue) {
|
if (newValue !== oldValue) {
|
||||||
|
|||||||
Reference in New Issue
Block a user