fix: ui stuff

This commit is contained in:
Vlad Stan 2023-07-12 15:29:05 +03:00
parent 4ae8b21cb8
commit 3864200ffa
2 changed files with 4 additions and 2 deletions

View file

@ -79,7 +79,8 @@
<q-item v-for="product in order.products" :key="product.id"> <q-item v-for="product in order.products" :key="product.id">
<q-item-section avatar> <q-item-section avatar>
<q-avatar> <q-avatar>
<img v-if="product.images && product.images[0] || product.image" :src="product.images[0] || product.image" /> <img v-if="product.images && product.images[0] || product.image"
:src="product.images[0] || product.image" />
<img v-else src="/nostrmarket/static/images/placeholder.png" /> <img v-else src="/nostrmarket/static/images/placeholder.png" />
</q-avatar> </q-avatar>
</q-item-section> </q-item-section>
@ -109,6 +110,7 @@
color="orange" class="cursor-pointer"> color="orange" class="cursor-pointer">
<span v-text="formatCurrency(order.invoice?.human_readable_part?.amount / 1000, 'sat')"></span> <span v-text="formatCurrency(order.invoice?.human_readable_part?.amount / 1000, 'sat')"></span>
</q-badge> </q-badge>
<!-- <q-badge v-if="!order.paid">Request Invoice Again</q-badge> -->
</q-item-label> </q-item-label>
</q-item-section> </q-item-section>
</q-card-section> </q-card-section>

View file

@ -806,8 +806,8 @@ const market = async () => {
handleOrderStatusUpdate(jsonData) { handleOrderStatusUpdate(jsonData) {
if (this.qrCodeDialog.dismissMsg) { if (this.qrCodeDialog.dismissMsg) {
this.qrCodeDialog.dismissMsg() this.qrCodeDialog.dismissMsg()
this.qrCodeDialog.show = false
} }
this.qrCodeDialog.show = false
const message = jsonData.shipped ? 'Order shipped' : jsonData.paid ? 'Order paid' : 'Order notification' const message = jsonData.shipped ? 'Order shipped' : jsonData.paid ? 'Order paid' : 'Order notification'
this.$q.notify({ this.$q.notify({
type: 'positive', type: 'positive',