chore: code clean-up
This commit is contained in:
parent
d22c15d7a7
commit
e6d65c0ade
6 changed files with 39 additions and 62 deletions
|
|
@ -150,7 +150,30 @@
|
|||
</div>
|
||||
</q-page-container>
|
||||
|
||||
<!-- END CHECKOUT DIALOG -->
|
||||
<!-- ACCOUNT DIALOG -->
|
||||
<q-dialog v-model="accountDialog.show" position="top">
|
||||
<q-card>
|
||||
<q-card-section class="row">
|
||||
<div class="text-h6">Account Setup</div>
|
||||
<q-space></q-space>
|
||||
</q-card-section>
|
||||
<q-card-section>
|
||||
<p>Enter your Nostr private key or generate a new one.</p>
|
||||
</q-card-section>
|
||||
|
||||
<q-card-section class="q-pt-none">
|
||||
<q-input dense label="Nsec/Hex" v-model="accountDialog.data.key" autofocus @keyup.enter="createAccount"
|
||||
:error="accountDialog.data.key && !isValidAccountKey" hint="Enter you private key"></q-input>
|
||||
</q-card-section>
|
||||
|
||||
<q-card-actions align="right" class="text-primary">
|
||||
<q-btn v-if="isValidAccountKey" label="Login" color="primary" @click="() => createAccount()"></q-btn>
|
||||
<q-btn v-else flat label="Generate" @click="generateKeyPair"></q-btn>
|
||||
<q-btn v-close-popup flat color="grey" class="q-ml-auto">Close</q-btn>
|
||||
</q-card-actions>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
|
||||
<!-- INVOICE DIALOG -->
|
||||
<q-dialog v-model="qrCodeDialog.show" position="top">
|
||||
<q-card class="q-pa-lg q-pt-xl lnbits__dialog-card">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue