Add more user feedback (loading buttons, empty states)

This commit is contained in:
2024-09-24 16:36:30 +02:00
parent 03ff8b402f
commit 76c5e953a1
8 changed files with 171 additions and 20 deletions

View File

@@ -27,10 +27,23 @@ function formatDateTimeString(string: string) {
<template>
<v-container max-width="1000">
<v-row v-for="order in accountStore.orders">
<v-row
v-if="accountStore.orders.length > 0"
v-for="order in accountStore.orders"
>
<v-col>
<orders-card :order="order" />
</v-col>
</v-row>
<v-row v-else>
<v-col>
<v-empty-state
icon="mdi-basket-off"
:title="$t('noOrders')"
:text="$t('noOrdersText')"
/>
</v-col>
</v-row>
</v-container>
</template>