open-vault/ui/app/templates/vault/cluster.hbs
hc-github-team-secure-vault-core 3a4286e713
backport of commit 6fa423e3f3e0bde47686fd4bfc6dd2b37031afa4 (#21046)
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
2023-06-09 18:03:58 +00:00

36 lines
1.1 KiB
Handlebars

<Sidebar::Nav::Cluster />
{{! Only show license banners for Enterprise }}
{{#if this.activeCluster.version.isEnterprise}}
<LicenseBanners
@expiry={{this.activeCluster.licenseExpiry}}
@autoloaded={{eq this.activeCluster.licenseState "autoloaded"}}
/>
{{/if}}
<div class="global-flash">
{{#each this.flashMessages.queue as |flash|}}
<FlashMessage data-test-flash-message={{true}} @flash={{flash}} as |customComponent flash close|>
{{#if flash.componentName}}
{{component flash.componentName content=flash.content}}
{{else}}
<AlertPopup
@type={{message-types flash.type}}
@message={{flash.message}}
@close={{close}}
@isPreformatted={{flash.preformatted}}
/>
{{/if}}
</FlashMessage>
{{/each}}
</div>
{{#if this.auth.isActiveSession}}
<section class="section">
<div class="container is-widescreen">
<TokenExpireWarning @expirationDate={{this.auth.tokenExpirationDate}}>
{{outlet}}
</TokenExpireWarning>
</div>
</section>
{{else}}
{{outlet}}
{{/if}}