mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-19 12:01:12 +02:00
make format
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user