fix: ui stuff
This commit is contained in:
parent
4ae8b21cb8
commit
3864200ffa
2 changed files with 4 additions and 2 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue