format and bundle

This commit is contained in:
Arc
2024-12-18 23:28:42 +00:00
parent fb5659de2a
commit 5997fd74fa
5 changed files with 58 additions and 57 deletions

View File

@@ -685,12 +685,12 @@ async def m029_create_audit_table(db: Connection):
"""
)
async def m030_add_currency_to_wallet(db: Connection):
"""
Setting currency to default is heavy, so easier just to add a trigger.
"""
await db.execute(
"""
CREATE TRIGGER IF NOT EXISTS set_default_currency
AFTER INSERT ON wallets

View File

@@ -100,9 +100,7 @@
v-if="update.currency"
class="text-h3 q-my-none text-no-wrap"
>
<strong
v-text="formattedFiatAmount"
></strong>
<strong v-text="formattedFiatAmount"></strong>
</div>
</div>
<div class="col-auto">
@@ -125,10 +123,11 @@
</div>
</div>
<div class="absolute-right q-pa-md" v-if="$q.screen.gt.md && update.currency">
<div class="text-bold text-italic">
BTC Price
</div>
<div
class="absolute-right q-pa-md"
v-if="$q.screen.gt.md && update.currency"
>
<div class="text-bold text-italic">BTC Price</div>
<span
class="text-bold text-italic"
v-text="formattedExchange"
@@ -150,7 +149,6 @@
</div>
</q-card-section>
<div class="row q-pb-md q-px-md q-col-gutter-md gt-sm">
<div class="col">
<q-btn
unelevated
@@ -166,11 +164,7 @@
@click="showReceiveDialog"
:label="$t('create_invoice')"
></q-btn>
<q-btn
unelevated
color="secondary"
icon="qr_code_scanner"
>
<q-btn unelevated color="secondary" icon="qr_code_scanner">
<q-tooltip
><span v-text="$t('camera_tooltip')"></span
></q-tooltip>
@@ -181,7 +175,8 @@
:callback="updateBalanceCallback"
:small_btn="false"
></lnbits-update-balance>
</div></div>
</div>
</div>
</q-card>
<q-card

File diff suppressed because one or more lines are too long

View File

@@ -678,10 +678,7 @@ window.app = Vue.createApp({
handleFiatTracking() {
if (this.fiatTracking === false) {
this.update.currency = ''
this.$q.localStorage.setItem(
'lnbits.isPrioritySwapped',
false
)
this.$q.localStorage.setItem('lnbits.isPrioritySwapped', false)
this.$q.localStorage.remove(`lnbits.exchangeRate`)
}
}
@@ -730,7 +727,9 @@ window.app = Vue.createApp({
}
// check blanace priority
if (this.$q.localStorage.getItem('lnbits.isPrioritySwapped')) {
this.isPrioritySwapped = this.$q.localStorage.getItem('lnbits.isPrioritySwapped')
this.isPrioritySwapped = this.$q.localStorage.getItem(
'lnbits.isPrioritySwapped'
)
} else {
this.isPrioritySwapped = false
this.$q.localStorage.setItem('lnbits.isPrioritySwapped', false)

View File

@@ -506,7 +506,14 @@
</template>
<template id="lnbits-update-balance">
<q-btn v-if="admin && small_btn" flat round color="primary" size="sm" icon="add">
<q-btn
v-if="admin && small_btn"
flat
round
color="primary"
size="sm"
icon="add"
>
<q-popup-edit class="bg-accent text-white" v-slot="scope" v-model="credit">
<q-input
filled