open-vault/ui/app/templates/components/token-expire-warning.hbs
Chelsea Shaw 51508987c4
Update MMMM Do yyyy to MMMM do yyyy per date-fns format docs (#11142)
* Update MMMM Do yyyy to MMMM do yyyy per date-fns format docs

* Add changelog
2021-03-19 12:08:33 -05:00

16 lines
470 B
Handlebars

{{#if (and expirationDate (is-after (now interval=1000) expirationDate))}}
<div class="token-expire-warning">
<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."
>
<LinkTo @route="vault.cluster.logout" class="button link">
Reauthenticate
</LinkTo>
</AlertBanner>
</div>
{{else}}
{{yield}}
{{/if}}