mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-04 17:24:55 -04:00
* VAULT-42410 - updating quick actions card to use arg @isAutoCentered={{false}}
* VAULT-42410 - Updated alignment for application state components
* fixed review comment
Co-authored-by: mohit-hashicorp <mohit.ojha@hashicorp.com>
43 lines
No EOL
1.4 KiB
Handlebars
43 lines
No EOL
1.4 KiB
Handlebars
{{!
|
|
Copyright IBM Corp. 2016, 2025
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
<Hds::Card::Container
|
|
@hasBorder={{true}}
|
|
class="has-padding-m known-secondaries-card {{if this.hasErrorClass 'has-error-border'}}"
|
|
>
|
|
<div class="level">
|
|
<h3 class="card-title title is-5">{{this.replicationAttrs.secondaries.length}} Known secondaries</h3>
|
|
<ToolbarLink @route="mode.secondaries" @model={{this.cluster.replicationMode}} data-test-manage-link>
|
|
View all
|
|
</ToolbarLink>
|
|
</div>
|
|
<div class="secondaries-table">
|
|
{{#if this.replicationAttrs.secondaries}}
|
|
<KnownSecondariesTable @secondaries={{this.replicationAttrs.secondaries}} />
|
|
{{else}}
|
|
<Hds::ApplicationState class="top-padding-32 is-marginless" as |A|>
|
|
<A.Header
|
|
@title="No known {{this.cluster.replicationMode}} secondary clusters associated with this cluster"
|
|
@titleTag="h2"
|
|
data-test-empty-state-title
|
|
/>
|
|
<A.Body
|
|
@text="Associated secondary clusters will be listed here. Add your first secondary cluster to get started."
|
|
data-test-empty-state-message
|
|
/>
|
|
</Hds::ApplicationState>
|
|
{{/if}}
|
|
</div>
|
|
{{#if this.cluster.canAddSecondary}}
|
|
<LinkTo
|
|
@route="mode.secondaries.add"
|
|
@model={{this.cluster.replicationMode}}
|
|
class="link add-secondaries"
|
|
data-test-link-to="Add secondary"
|
|
>
|
|
Add secondary
|
|
</LinkTo>
|
|
{{/if}}
|
|
</Hds::Card::Container> |