feat: improve on create wallet frontend and api. (BREAKING CHANGE) (#3635)
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<q-card-section class="flex flex-center column full-height text-center">
|
||||
<div>
|
||||
<q-btn
|
||||
@click="openNewWalletDialog()"
|
||||
@click="g.newWalletType = 'lightning'"
|
||||
round
|
||||
color="primary"
|
||||
icon="add"
|
||||
@@ -29,7 +29,7 @@
|
||||
<div>
|
||||
<q-badge
|
||||
v-if="g.user.walletInvitesCount"
|
||||
@click="openNewWalletDialog('lightning-shared')"
|
||||
@click="g.newWalletType = 'lightning-shared'"
|
||||
dense
|
||||
outline
|
||||
class="q-mt-sm"
|
||||
|
||||
@@ -61,14 +61,7 @@
|
||||
></q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
clickable
|
||||
@click="
|
||||
g.user.walletInvitesCount
|
||||
? openNewWalletDialog('lightning-shared')
|
||||
: openNewWalletDialog('lightning')
|
||||
"
|
||||
>
|
||||
<q-item clickable @click="openNewWalletDialog">
|
||||
<q-item-section side>
|
||||
<q-icon name="add" color="grey-5" size="md"></q-icon>
|
||||
</q-item-section>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template id="lnbits-wallet-new">
|
||||
<q-dialog v-model="g.showNewWalletDialog" position="top">
|
||||
<q-dialog v-model="showNewWalletDialog" position="top">
|
||||
<q-card class="q-pa-lg q-pt-md lnbits__dialog-card">
|
||||
<q-card-section>
|
||||
<div class="text-h6">
|
||||
@@ -33,18 +33,17 @@
|
||||
dense
|
||||
></q-select>
|
||||
<q-input
|
||||
v-if="g.newWalletType == 'lightning'"
|
||||
v-if="isLightning"
|
||||
dense
|
||||
v-model="newWallet.name"
|
||||
v-model="wallet.name"
|
||||
:label="$t('wallet_name')"
|
||||
autofocus
|
||||
@keyup.enter="submitAddWallet()"
|
||||
class="q-mt-md"
|
||||
></q-input>
|
||||
|
||||
<q-select
|
||||
v-if="g.newWalletType == 'lightning-shared'"
|
||||
v-model="newWallet.sharedWalletId"
|
||||
v-if="isLightningShared"
|
||||
v-model="wallet.sharedWalletId"
|
||||
:label="$t('shared_wallet_id')"
|
||||
emit-value
|
||||
map-options
|
||||
@@ -52,7 +51,7 @@
|
||||
:options="inviteWalletOptions"
|
||||
class="q-mt-md"
|
||||
></q-select>
|
||||
<div v-if="g.newWalletType == 'lightning-shared'" class="q-mt-md">
|
||||
<div v-if="isLightningShared" class="q-mt-md">
|
||||
<span v-text="$t('shared_wallet_desc')" class="q-mt-lg"></span>
|
||||
</div>
|
||||
</q-card-section>
|
||||
@@ -69,8 +68,8 @@
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<q-btn
|
||||
v-if="g.newWalletType == 'lightning-shared'"
|
||||
:disabled="!newWallet.sharedWalletId"
|
||||
v-if="isLightningShared"
|
||||
:disabled="!wallet.sharedWalletId"
|
||||
flat
|
||||
:label="$t('reject_wallet')"
|
||||
v-close-popup
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<div class="row items-center justify-between q-gutter-xs">
|
||||
<div class="col">
|
||||
<q-btn
|
||||
@click="openNewWalletDialog()"
|
||||
@click="g.newWalletType = 'lightning'"
|
||||
:label="$t('add_wallet')"
|
||||
color="primary"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user