open-vault/ui/app/templates/components/token-expire-warning.hbs

16 lines
470 B
Handlebars
Raw Normal View History

2018-12-10 16:44:37 +00:00
{{#if (and expirationDate (is-after (now interval=1000) expirationDate))}}
2018-11-14 00:55:07 +00:00
<div class="token-expire-warning">
2018-12-10 16:44:37 +00:00
<AlertBanner
@type="danger"
@message="Your auth token expired on
{{date-format expirationDate "MMMM Do YYYY, h:mm:ss a"}}
. You will need to re-authenticate."
>
2018-11-14 00:55:07 +00:00
{{#link-to "vault.cluster.logout" class="button link"}}
Reauthenticate
{{/link-to}}
</AlertBanner>
</div>
{{else}}
{{yield}}
2018-12-10 16:44:37 +00:00
{{/if}}