1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 06:51:10 +03:00

render non-editable linked credentials

We still want to show linked credentials even when a field is
non-editable.
This commit is contained in:
Jake McDermott 2019-03-28 10:15:36 -04:00
parent 0f6615d9cd
commit 6b87241099
No known key found for this signature in database
GPG Key ID: 9A6F084352C3A0B7

View File

@ -75,6 +75,7 @@ function assignInputGroupValues (apiConfig, credentialType, sourceCredentials) {
inputs = inputs.map((field) => {
field.tagMode = this.isEditable() && credentialType.get('kind') !== 'external';
if (linkedFieldNames.includes(field.id)) {
field.tagMode = true;
field.asTag = true;
const { summary_fields } = this.get('related.input_sources.results')
.find(({ input_field_name }) => input_field_name === field.id);