vault/ui/lib/kmip/addon/templates/configuration.hbs
claire bontempo 0c618d4148
UI: download generated pki key (#18381)
* rename download service file

* rename file again

* add download-file service to engine

* refactor download button to use service

* refactor download service

* finish refactor download service, make arg  order consistent: filename, content, extension

* add download button to key details

* fix flaky test?
2022-12-15 22:57:20 +00:00

34 lines
954 B
Handlebars

<HeaderScope />
<Toolbar>
<ToolbarActions>
{{#if this.model}}
<DownloadButton
class="toolbar-link"
@filename={{concat this.model.ca.id "-ca"}}
@data={{this.model.ca.caPem}}
@extension="pem"
>
Download CA cert
<Chevron @isButton={{true}} />
</DownloadButton>
{{/if}}
<ToolbarLink @route="configure" data-test-kmip-link-configure>
Configure
</ToolbarLink>
</ToolbarActions>
</Toolbar>
{{#if this.model}}
<FieldGroupShow @model={{this.model}} />
<InfoTableRow @label="CA PEM" @value={{this.model.ca.caPem}}>
<MaskedInput @value={{this.model.ca.caPem}} @displayOnly={{true}} @allowCopy={{true}} />
</InfoTableRow>
{{else}}
<EmptyState
@title="No configuration for this secrets engine"
@message="We'll need to configure a few things before getting started."
>
<LinkTo @route="configure">
Configure
</LinkTo>
</EmptyState>
{{/if}}