chore: 🤖 brokered and injected credential associations (#1512)

* chore: 🤖 brokered and injected credential associations

Verified JSON credentials show up as a source that can be added to a
target as `brokered`, and not show up as a source that can be added to a
target as `injected`.

✅ Closes: ICU-6833, ICU-6834, ICU-6835, ICU-6836

* Update ui/admin/app/controllers/scopes/scope/targets/target/add-injected-application-credential-sources.js

Co-authored-by: Randall Morey <randall@randallmorey.com>

Co-authored-by: Randall Morey <randall@randallmorey.com>
This commit is contained in:
Devon AndersonandRandall Morey authored and GitHub committed 2022-12-06 13:37:55 -05:00
1 parent c62eb751e4
commit 764f4703e0
1 file changed
+1 -2
@@ -27,12 +27,11 @@ export default class ScopesScopeTargetsTargetAddInjectedApplicationCredentialSou
(source) => source.value
)
);
const notAddedCredentialLibraries = this.model.credentialLibraries.filter(
({ id }) => !currentCredentialSourceIDs.has(id)
);
const notAddedCredentials = this.model.credentials.filter(
({ id }) => !currentCredentialSourceIDs.has(id)
({ id, type }) => !currentCredentialSourceIDs.has(id) && type !== 'json'
);
return [...notAddedCredentialLibraries, ...notAddedCredentials];
}