mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
* update hds to latest version * yield dropdown Interactive text instead of use @text arg, results after running codemod * remaining dropdown changes * address sidebar nav IconButton deprecation, fix secret tests * revert * explicitly select popupmenu * more test changes * fix pki toggle button * remove tracked prop in oidc client controller * aaand more test updates * change to tilde * tilde yarn lock changes * small cleanup items
134 lines
4.8 KiB
Handlebars
134 lines
4.8 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
~}}
|
|
|
|
<PkiPaginatedList @backend={{@backend}} @listRoute="issuers.index" @list={{@issuers}}>
|
|
<:actions>
|
|
<ToolbarLink @route="issuers.import" @model={{@backend}} data-test-generate-issuer="import">
|
|
Import
|
|
</ToolbarLink>
|
|
<BasicDropdown
|
|
@class="popup-menu"
|
|
@horizontalPosition="auto-right"
|
|
@verticalPosition="below"
|
|
@renderInPlace={{true}}
|
|
as |D|
|
|
>
|
|
<D.Trigger
|
|
class={{concat "toolbar-link" (if D.isOpen " is-active")}}
|
|
@htmlTag="button"
|
|
data-test-issuer-generate-dropdown
|
|
>
|
|
Generate
|
|
<Chevron @direction="down" @isButton={{true}} />
|
|
</D.Trigger>
|
|
<D.Content @defaultClass="popup-menu-content">
|
|
<nav class="box menu" aria-label="generate options">
|
|
<ul class="menu-list">
|
|
<li>
|
|
<LinkTo
|
|
@route="issuers.generate-root"
|
|
@model={{@backend}}
|
|
{{on "click" (fn this.onLinkClick D)}}
|
|
data-test-generate-issuer="root"
|
|
>
|
|
Root
|
|
</LinkTo>
|
|
</li>
|
|
<li>
|
|
<LinkTo
|
|
@route="issuers.generate-intermediate"
|
|
@model={{@backend}}
|
|
{{on "click" (fn this.onLinkClick D)}}
|
|
data-test-generate-issuer="intermediate"
|
|
>
|
|
Intermediate CSR
|
|
</LinkTo>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</D.Content>
|
|
</BasicDropdown>
|
|
</:actions>
|
|
<:list as |issuers|>
|
|
{{#each issuers as |pkiIssuer idx|}}
|
|
<LinkedBlock
|
|
class="list-item-row"
|
|
@params={{array "issuers.issuer.details" @backend pkiIssuer.id}}
|
|
@linkPrefix={{@mountPoint}}
|
|
>
|
|
<div class="level is-mobile">
|
|
<div class="level-left">
|
|
<div data-test-issuer-list={{pkiIssuer.id}}>
|
|
<Icon @name="certificate" class="has-text-grey-light" />
|
|
<span class="has-text-weight-semibold is-underline">
|
|
{{pkiIssuer.issuerRef}}
|
|
{{#if pkiIssuer.issuerName}}
|
|
<span class="tag has-text-grey-dark">{{pkiIssuer.id}}</span>
|
|
{{/if}}
|
|
</span>
|
|
<div class="is-flex-row has-left-margin-l has-top-margin-xs">
|
|
{{#if pkiIssuer.isDefault}}
|
|
<span class="tag has-text-grey-dark" data-test-is-default={{idx}}>default issuer</span>
|
|
{{/if}}
|
|
{{#if (not-eq pkiIssuer.isRoot undefined)}}
|
|
<span class="tag has-text-grey-dark" data-test-is-root-tag={{idx}}>{{if
|
|
pkiIssuer.isRoot
|
|
"root"
|
|
"intermediate"
|
|
}}</span>
|
|
{{/if}}
|
|
{{#if pkiIssuer.serialNumber}}
|
|
<span class="tag is-transparent has-right-margin-none" data-test-serial-number={{idx}}>
|
|
<InfoTooltip>
|
|
Serial number
|
|
</InfoTooltip>
|
|
{{pkiIssuer.serialNumber}}
|
|
</span>
|
|
{{/if}}
|
|
{{#if pkiIssuer.parsedCertificate.common_name}}
|
|
<span class="tag is-transparent has-left-margin-none" data-test-common-name={{idx}}>
|
|
<InfoTooltip>
|
|
Common name
|
|
</InfoTooltip>
|
|
{{pkiIssuer.parsedCertificate.common_name}}
|
|
</span>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="level-right is-flex is-paddingless is-marginless">
|
|
<div class="level-item">
|
|
<Hds::Dropdown @isInline={{true}} @listPosition="bottom-right" as |dd|>
|
|
<dd.ToggleIcon
|
|
@icon="more-horizontal"
|
|
@text="Manage issuer"
|
|
@hasChevron={{false}}
|
|
data-test-popup-menu-trigger
|
|
/>
|
|
<dd.Interactive
|
|
@route="issuers.issuer.details"
|
|
@models={{array @backend pkiIssuer.id}}
|
|
data-test-pki-issuer-details
|
|
>Details</dd.Interactive>
|
|
<dd.Interactive @route="issuers.issuer.edit" @models={{array @backend pkiIssuer.id}}>Edit</dd.Interactive>
|
|
</Hds::Dropdown>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</LinkedBlock>
|
|
{{/each}}
|
|
</:list>
|
|
<:empty>
|
|
<EmptyState @title="PKI not configured" @message={{this.notConfiguredMessage}}>
|
|
<Hds::Link::Standalone
|
|
@icon="chevron-right"
|
|
@iconPosition="trailing"
|
|
@text="Configure PKI"
|
|
@route="configuration.create"
|
|
@model={{@backend}}
|
|
/>
|
|
</EmptyState>
|
|
</:empty>
|
|
</PkiPaginatedList> |