add is default text (#18717)

This commit is contained in:
claire bontempo 2023-01-17 08:34:09 -08:00 committed by GitHub
parent b4a89d0b19
commit 072e2f449f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -30,6 +30,7 @@ export default class PkiIssuerModel extends PkiCertificateBaseModel {
return false;
}
@attr isDefault; // readonly
@attr('string') issuerId;
@attr('string', { displayType: 'masked' }) certificate;
@attr('string', { displayType: 'masked', label: 'CA Chain' }) caChain;

View File

@ -38,6 +38,16 @@
</ToolbarActions>
</Toolbar>
{{#if @issuer.isDefault}}
<p class="has-top-margin-m">
This is your default issuer certificate. You will see it in your
<LinkTo @route="issuers.index">
list of Issuers.
</LinkTo>
You may also want to configure its usage and other behaviors.
</p>
{{/if}}
<main data-test-issuer-details>
{{#each @issuer.formFieldGroups as |fieldGroup|}}
{{#each-in fieldGroup as |group fields|}}
@ -60,7 +70,7 @@
{{else if (eq attr.name "keyId")}}
<InfoTableRow @label={{or attr.options.label (humanize (dasherize attr.name))}} @value={{get @issuer attr.name}}>
{{#if @issuer.keyId}}
<LinkTo @route="keys.key" @model={{@issuer.keyId}}>{{@issuer.keyId}}</LinkTo>
<LinkTo @route="keys.key.details" @model={{@issuer.keyId}}>{{@issuer.keyId}}</LinkTo>
{{else}}
<Icon @name="minus" />
{{/if}}