Add more info about last attempts to admin billing dashboard (#4029)
This commit is contained in:
parent
ae25a15abd
commit
7d76fe1b6a
@ -150,9 +150,26 @@
|
|||||||
</template>
|
</template>
|
||||||
</span>
|
</span>
|
||||||
<span class="text-sm text-secondary">
|
<span class="text-sm text-secondary">
|
||||||
|
<span
|
||||||
|
v-if="charge.status === 'cancelled' && $dayjs(charge.due).isBefore($dayjs())"
|
||||||
|
class="font-bold"
|
||||||
|
>
|
||||||
|
Ended:
|
||||||
|
</span>
|
||||||
|
<span v-else-if="charge.status === 'cancelled'" class="font-bold">Ends:</span>
|
||||||
|
<span v-else-if="charge.type === 'refund'" class="font-bold">Issued:</span>
|
||||||
|
<span v-else class="font-bold">Due:</span>
|
||||||
{{ dayjs(charge.due).format("MMMM D, YYYY [at] h:mma") }}
|
{{ dayjs(charge.due).format("MMMM D, YYYY [at] h:mma") }}
|
||||||
<span class="text-secondary">({{ formatRelativeTime(charge.due) }}) </span>
|
<span class="text-secondary">({{ formatRelativeTime(charge.due) }}) </span>
|
||||||
</span>
|
</span>
|
||||||
|
<span v-if="charge.last_attempt != null" class="text-sm text-secondary">
|
||||||
|
<span v-if="charge.status === 'failed'" class="font-bold">Last attempt:</span>
|
||||||
|
<span v-else class="font-bold">Charged:</span>
|
||||||
|
{{ dayjs(charge.last_attempt).format("MMMM D, YYYY [at] h:mma") }}
|
||||||
|
<span class="text-secondary"
|
||||||
|
>({{ formatRelativeTime(charge.last_attempt) }})
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
<div class="flex w-full items-center gap-1 text-xs text-secondary">
|
<div class="flex w-full items-center gap-1 text-xs text-secondary">
|
||||||
{{ charge.status }}
|
{{ charge.status }}
|
||||||
⋅
|
⋅
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user