new wallet dialog
This commit is contained in:
@@ -1,94 +1,72 @@
|
|||||||
<template id="lnbits-wallet-new">
|
<template id="lnbits-wallet-new">
|
||||||
<q-dialog v-model="showNewWalletDialog" position="top">
|
<lnbits-dialog
|
||||||
<q-card class="q-pa-lg q-pt-md lnbits__dialog-card">
|
:show="showNewWalletDialog"
|
||||||
<q-card-section>
|
:title="$t('add_new_wallet')"
|
||||||
<div class="text-h6">
|
:action="{
|
||||||
<span v-text="$t('add_new_wallet')"></span>
|
handler: submitAddWallet,
|
||||||
</div>
|
label: $t('add_wallet'),
|
||||||
</q-card-section>
|
closePopup: true
|
||||||
<q-card-section v-if="g.user.walletInvitesCount">
|
}"
|
||||||
<q-badge
|
:secondary-action="
|
||||||
@click="g.newWalletType = 'lightning-shared'"
|
isLightningShared
|
||||||
class="cursor-pointer"
|
? {
|
||||||
>
|
handler: submitRejectWalletInvitation,
|
||||||
<span
|
label: $t('reject_wallet'),
|
||||||
v-text="
|
color: 'negative',
|
||||||
'You have ' +
|
closePopup: true
|
||||||
g.user.walletInvitesCount +
|
}
|
||||||
' wallet invitation' +
|
: null
|
||||||
(g.user.walletInvitesCount > 1 ? 's' : '')
|
"
|
||||||
"
|
@update:show="showNewWalletDialog = $event"
|
||||||
></span>
|
>
|
||||||
</q-badge>
|
<q-card-section v-if="g.user.walletInvitesCount">
|
||||||
</q-card-section>
|
<q-badge
|
||||||
|
@click="g.newWalletType = 'lightning-shared'"
|
||||||
|
class="cursor-pointer"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
v-text="
|
||||||
|
'You have ' +
|
||||||
|
g.user.walletInvitesCount +
|
||||||
|
' wallet invitation' +
|
||||||
|
(g.user.walletInvitesCount > 1 ? 's' : '')
|
||||||
|
"
|
||||||
|
></span>
|
||||||
|
</q-badge>
|
||||||
|
</q-card-section>
|
||||||
|
|
||||||
<q-card-section class="q-pt-none">
|
<q-card-section class="q-pt-none">
|
||||||
<q-select
|
<q-select
|
||||||
v-if="walletTypes.length > 1"
|
v-if="walletTypes.length > 1"
|
||||||
:options="walletTypes"
|
:options="walletTypes"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
:label="$t('wallet_type')"
|
:label="$t('wallet_type')"
|
||||||
v-model="g.newWalletType"
|
v-model="g.newWalletType"
|
||||||
dense
|
dense
|
||||||
></q-select>
|
></q-select>
|
||||||
<q-input
|
<q-input
|
||||||
v-if="isLightning"
|
v-if="isLightning"
|
||||||
dense
|
dense
|
||||||
v-model="wallet.name"
|
v-model="wallet.name"
|
||||||
:label="$t('wallet_name')"
|
:label="$t('wallet_name')"
|
||||||
autofocus
|
autofocus
|
||||||
@keyup.enter="submitAddWallet()"
|
@keyup.enter="submitAddWallet()"
|
||||||
class="q-mt-md"
|
class="q-mt-md"
|
||||||
></q-input>
|
></q-input>
|
||||||
<q-select
|
<q-select
|
||||||
v-if="isLightningShared"
|
v-if="isLightningShared"
|
||||||
v-model="wallet.sharedWalletId"
|
v-model="wallet.sharedWalletId"
|
||||||
:label="$t('shared_wallet_id')"
|
:label="$t('shared_wallet_id')"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
dense
|
dense
|
||||||
:options="inviteWalletOptions"
|
:options="inviteWalletOptions"
|
||||||
class="q-mt-md"
|
class="q-mt-md"
|
||||||
></q-select>
|
></q-select>
|
||||||
<div v-if="isLightningShared" class="q-mt-md">
|
<div v-if="isLightningShared" class="q-mt-md">
|
||||||
<span v-text="$t('shared_wallet_desc')" class="q-mt-lg"></span>
|
<span v-text="$t('shared_wallet_desc')" class="q-mt-lg"></span>
|
||||||
</div>
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
</lnbits-dialog>
|
||||||
<q-card-actions class="text-primary">
|
|
||||||
<div class="row full-width">
|
|
||||||
<div class="col-md-4">
|
|
||||||
<q-btn
|
|
||||||
flat
|
|
||||||
:label="$t('cancel')"
|
|
||||||
class="float-left"
|
|
||||||
v-close-popup
|
|
||||||
></q-btn>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4">
|
|
||||||
<q-btn
|
|
||||||
v-if="isLightningShared"
|
|
||||||
:disabled="!wallet.sharedWalletId"
|
|
||||||
flat
|
|
||||||
:label="$t('reject_wallet')"
|
|
||||||
v-close-popup
|
|
||||||
color="negative"
|
|
||||||
@click="submitRejectWalletInvitation()"
|
|
||||||
></q-btn>
|
|
||||||
<span v-else></span>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4">
|
|
||||||
<q-btn
|
|
||||||
flat
|
|
||||||
:label="$t('add_wallet')"
|
|
||||||
v-close-popup
|
|
||||||
@click="submitAddWallet()"
|
|
||||||
class="float-right"
|
|
||||||
></q-btn>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</q-card-actions>
|
|
||||||
</q-card>
|
|
||||||
</q-dialog>
|
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user