UI improvements (#2926)

This commit is contained in:
Tiago Vasconcelos
2025-02-07 10:09:15 +02:00
committed by GitHub
parent 9a1d707f54
commit 53b00c6d41
9 changed files with 121 additions and 23 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+3
View File
@@ -532,6 +532,9 @@ video {
word-break: break-word;
}
.q-card {
border-radius: 10px;
}
.q-card code {
overflow-wrap: break-word;
}
+3 -1
View File
@@ -512,5 +512,7 @@ window.localisation.en = {
payments_count_in_out_chart: 'Count In/Out Chart',
reset_wallet_keys: 'Reset Keys',
reset_wallet_keys_desc:
'Reset the API keys for this wallet. This will invalidate the current keys and generate new ones.'
'Reset the API keys for this wallet. This will invalidate the current keys and generate new ones.',
view_list: 'View wallets as list',
view_column: 'View wallets as rows'
}
+18
View File
@@ -471,6 +471,7 @@ window.windowMixin = {
toggleSubs: true,
mobileSimple: true,
walletFlip: true,
showAddWalletDialog: {show: false},
borderSelection: null,
gradientSelection: null,
themeSelection: null,
@@ -506,6 +507,23 @@ window.windowMixin = {
}
this.$q.localStorage.set('lnbits.walletFlip', this.walletFlip)
},
submitAddWallet() {
if (
this.showAddWalletDialog.name &&
this.showAddWalletDialog.name.length > 0
) {
LNbits.api.createWallet(
this.g.user.wallets[0],
this.showAddWalletDialog.name
)
this.showAddWalletDialog = {show: false}
} else {
this.$q.notify({
message: 'Please enter a name for the wallet',
color: 'negative'
})
}
},
simpleMobile() {
this.$q.localStorage.set('lnbits.mobileSimple', !this.mobileSimple)
this.refreshRoute()
+1
View File
@@ -207,6 +207,7 @@ video {
}
.q-card {
border-radius: 10px;
code {
overflow-wrap: break-word;
}