mirror of
https://github.com/lnbits/lnbits.git
synced 2025-08-08 17:22:14 +02:00
format and bundle
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
2
lnbits/static/bundle-components.min.js
vendored
2
lnbits/static/bundle-components.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user