mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
* replaced each instance of MaskedInput in PKI with CertificateCard * modify tests for pki-generate-csr * add test for pki-issuer-details. modify test for pki-certificate-details * added test for pki-key-details. modified test for pki-sign-intermediate-form * update 2 test helper files and modify test for pki-issuer-rotate-root * update test for certificate-card-test.js, update test for the kubernetes configuration-test.js * modify pki-action-forms-test.js to no longer look for masked input. expand test for pki-issuer-details-test.js to check for all issuer details * change CertificateCard to show different format types (PEM, DER, nothing) depending on the value provided. update 2 test files to account for this. * change CertificateCard arg name from @certficateValue to @data to be more inclusive of different uses of CertificateCard (i.e when used for a private key, not a certificate). add description to certificate-card.js * change naming for attr.options.masked to attr.options.displayCard to reflect the change from MaskedInput to CertificateCard * add changelog * change attribute to isCertificate to better fit the title of the component CertificateCard. edit pki-certificate-details.hbs to get rid of extraneous code
26 lines
1.2 KiB
Handlebars
26 lines
1.2 KiB
Handlebars
{{#each @displayFields as |field|}}
|
|
{{#let (find-by "name" field @model.allFields) as |attr|}}
|
|
{{#let (get @model attr.name) as |value|}}
|
|
{{! only render if there's a value, unless it's the commonName or privateKey/Type }}
|
|
{{#if (or value (or (eq attr.name "commonName") (eq attr.name "privateKey") (eq attr.name "privateKeyType")))}}
|
|
<InfoTableRow
|
|
@label={{or attr.options.label (humanize (dasherize attr.name))}}
|
|
@value={{value}}
|
|
@addCopyButton={{or (eq attr.name "issuerId") (eq attr.name "keyId")}}
|
|
>
|
|
{{#if (and attr.options.isCertificate value)}}
|
|
<CertificateCard @data={{value}} />
|
|
{{else if attr.options.detailLinkTo}}
|
|
<LinkTo @route={{attr.options.detailLinkTo}} @model={{value}}>{{value}}</LinkTo>
|
|
{{else if (or (eq attr.name "privateKey") (eq attr.name "privateKeyType"))}}
|
|
<span class="{{unless value 'tag'}}">{{or value "internal"}}</span>
|
|
{{else if attr.options.formatDate}}
|
|
{{date-format value "MMM d yyyy HH:mm:ss a zzzz"}}
|
|
{{else}}
|
|
{{value}}
|
|
{{/if}}
|
|
</InfoTableRow>
|
|
{{/if}}
|
|
{{/let}}
|
|
{{/let}}
|
|
{{/each}} |