Skip to content

Commit

Permalink
fix UI accordinlgly
Browse files Browse the repository at this point in the history
  • Loading branch information
talvasconcelos committed Oct 19, 2023
1 parent 1b030a1 commit 1ee958a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/satspay/display.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="col-lg-4 col-md-6 col-sm-8 col-xs-10">
<q-card>
<q-card-section class="text-center">
<div class="text-h4">SatsPay</div>
<div class="text-h4">${charge.name || 'LNbits SatsPay'}</div>
<div class="text-subtitle1">${charge.description}</div>
</q-card-section>
<satspay-time-elapsed :charge="charge"></satspay-time-elapsed>
Expand Down
15 changes: 13 additions & 2 deletions templates/satspay/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,13 @@ <h6 class="text-subtitle1 q-my-none">
<q-dialog v-model="formDialogCharge.show" position="top">
<q-card class="q-pa-lg q-pt-xl lnbits__dialog-card">
<q-form @submit="sendFormDataCharge" class="q-gutter-md">
<q-input
filled
dense
v-model.trim="formDialogCharge.data.name"
type="text"
label="Title (Default is 'SatsPay')"
></q-input>
<q-input
filled
dense
Expand Down Expand Up @@ -720,6 +727,7 @@ <h6 class="text-subtitle1 q-my-none">
this.formDialogThemes.show = false
},
cancelCharge: function (data) {
this.formDialogCharge.data.description = null
this.formDialogCharge.data.description = ''
this.formDialogCharge.data.onchain = false
this.formDialogCharge.data.onchainwallet = ''
Expand Down Expand Up @@ -877,8 +885,11 @@ <h6 class="text-subtitle1 q-my-none">
)

for (const charge of onchainActiveCharges) {
const fn = async () =>{
const api = charge.extra?.network === 'Testnet' ? addressesTestAPI : addressesAPI
const fn = async () => {
const api =
charge.extra?.network === 'Testnet'
? addressesTestAPI
: addressesAPI
return api.getAddressTxsUtxo({
address: charge.onchainaddress
})
Expand Down

0 comments on commit 1ee958a

Please sign in to comment.