make format

This commit is contained in:
Tiago Vasconcelos
2022-11-08 13:18:10 +00:00
parent 9f7b4c1370
commit 8e85651c4f

View File

@@ -149,7 +149,12 @@
</div> </div>
</q-page-sticky> </q-page-sticky>
<q-page-sticky position="top-right" :offset="[18, 18]"> <q-page-sticky position="top-right" :offset="[18, 18]">
<q-btn @click="showLastPayments" fab icon="receipt_long" color="primary" /> <q-btn
@click="showLastPayments"
fab
icon="receipt_long"
color="primary"
/>
</q-page-sticky> </q-page-sticky>
<q-dialog <q-dialog
v-model="invoiceDialog.show" v-model="invoiceDialog.show"
@@ -271,11 +276,16 @@
{%raw%} {%raw%}
<q-item-section> <q-item-section>
<q-item-label>{{payment.amount / 1000}} sats</q-item-label> <q-item-label>{{payment.amount / 1000}} sats</q-item-label>
<q-item-label caption lines="2">{{payment.checking_id}}</q-item-label> <q-item-label caption lines="2"
>{{payment.checking_id}}</q-item-label
>
</q-item-section> </q-item-section>
<q-item-section side top> <q-item-section side top>
<q-item-label caption>{{payment.dateFrom}}</q-item-label> <q-item-label caption>{{payment.dateFrom}}</q-item-label>
<q-icon :name="payment.pending ? 'settings_ethernet' : 'check'" :color="payment.pending ? 'grey' : 'green'" /> <q-icon
:name="payment.pending ? 'settings_ethernet' : 'check'"
:color="payment.pending ? 'grey' : 'green'"
/>
</q-item-section> </q-item-section>
{%endraw%} {%endraw%}
</q-item> </q-item>
@@ -551,11 +561,11 @@
response.data.data['BTC' + self.currency][self.currency] response.data.data['BTC' + self.currency][self.currency]
}) })
}, },
getLastPayments(){ getLastPayments() {
return axios return axios
.get(`/tpos/api/v1/tposs/${this.tposId}/invoices`) .get(`/tpos/api/v1/tposs/${this.tposId}/invoices`)
.then(res => { .then(res => {
if(res.data && res.data.length){ if (res.data && res.data.length) {
let last = [...res.data] let last = [...res.data]
//last.length = Math.min(last.length, 5) //last.length = Math.min(last.length, 5)
this.lastPaymentsDialog.data = last.map(obj => { this.lastPaymentsDialog.data = last.map(obj => {
@@ -566,7 +576,7 @@
}) })
.catch(e => console.error(e)) .catch(e => console.error(e))
}, },
showLastPayments(){ showLastPayments() {
this.getLastPayments() this.getLastPayments()
this.lastPaymentsDialog.show = true this.lastPaymentsDialog.show = true
} }