Fix "Incorrect wording for expired pats" (#1378)

This commit is contained in:
Mysterious_Dev
2023-09-24 21:35:34 +02:00
committed by GitHub
parent fc64719bb8
commit 05d568d1c1

View File

@@ -105,7 +105,10 @@
</span>
<span v-tooltip="$dayjs(pat.expires).format('MMMM D, YYYY [at] h:mm A')">
Expires {{ fromNow(pat.expires) }}
<template v-if="new Date(pat.expires) > new Date()">
Expires {{ fromNow(pat.expires) }}
</template>
<template v-else> Expired {{ fromNow(pat.expires) }} </template>
</span>
<span v-tooltip="$dayjs(pat.created).format('MMMM D, YYYY [at] h:mm A')">