feat: show new badge for order

This commit is contained in:
Vlad Stan 2023-03-30 11:22:41 +03:00
parent 8d1998c33b
commit 3a77bee659
2 changed files with 5 additions and 2 deletions

View file

@ -63,7 +63,10 @@
/>
</q-td>
<q-td key="id" :props="props"> {{toShortId(props.row.id)}} </q-td>
<q-td key="id" :props="props">
{{toShortId(props.row.id)}}
<q-badge v-if="props.row.isNew" color="orange">new</q-badge></q-td
>
<q-td key="total" :props="props"> {{props.row.total}} </q-td>
<!-- todo: currency per order -->

View file

@ -148,7 +148,7 @@ async function orderList(path) {
`/nostrmarket/api/v1/order/${orderId}`,
this.inkey
)
return {...data, expanded: false}
return {...data, expanded: false, isNew: true}
} catch (error) {
LNbits.utils.notifyApiError(error)
}