nostrmarket/static/components/user-config/user-config.html
2023-07-18 16:40:43 +02:00

47 lines
No EOL
1.6 KiB
HTML

<q-card>
<q-card-section v-if="account">
<div class="row">
<div class="col-10">
<q-input v-model="account.npub" readonly disbled outlined :hint="account.pubkey" type="text" label="Public Key"
class="q-mb-md">
<template v-slot:append>
<q-btn @click="copyText(account.npub)" icon="content_copy" label="Npub" flat
color="gray float-right q-mt-sm"></q-btn>
</template>
</q-input>
</div>
<div class="col-2 auto-width">
<q-btn @click="copyText(account.pubkey)" icon="content_copy" label="Hex" flat
color="gray float-right q-mt-sm"></q-btn>
</div>
</div>
<div class="row">
<div class="col-10">
<q-input v-model="account.nsec" readonly disbled outlined type="password" label="Private Key"
class="q-mb-md">
<template v-slot:append>
<q-btn @click="copyText(account.nsec)" icon="content_copy" label="Nsec" flat color="gray float-right q-mt-sm"></q-btn>
</template>
</q-input>
</div>
<div class="col-2 auto-width">
<q-btn @click="copyText(account.privkey)" icon="content_copy" label="Hex" flat color="gray float-right q-mt-sm"></q-btn>
</div>
</div>
</q-card-section>
<q-separator />
<q-card-section>
<div v-if="account" class="float-right">
<q-checkbox v-model="clearAllData" label="Clear All Data"></q-checkbox>
<q-btn @click="logout" flat label="Logout" icon="logout" class="q-ml-lg" color="primary"></q-btn>
</div>
<div v-else>
<strong>No Account</strong>
</div>
</q-card-section>
<q-card-section></q-card-section>
</q-card>