feat: show new badge for order
This commit is contained in:
parent
8d1998c33b
commit
3a77bee659
2 changed files with 5 additions and 2 deletions
|
|
@ -63,7 +63,10 @@
|
||||||
/>
|
/>
|
||||||
</q-td>
|
</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>
|
<q-td key="total" :props="props"> {{props.row.total}} </q-td>
|
||||||
<!-- todo: currency per order -->
|
<!-- todo: currency per order -->
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@ async function orderList(path) {
|
||||||
`/nostrmarket/api/v1/order/${orderId}`,
|
`/nostrmarket/api/v1/order/${orderId}`,
|
||||||
this.inkey
|
this.inkey
|
||||||
)
|
)
|
||||||
return {...data, expanded: false}
|
return {...data, expanded: false, isNew: true}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
LNbits.utils.notifyApiError(error)
|
LNbits.utils.notifyApiError(error)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue