feat: ask for login
This commit is contained in:
parent
04d087c65d
commit
c15086d0cf
2 changed files with 6 additions and 1 deletions
|
|
@ -117,7 +117,7 @@
|
|||
<q-separator />
|
||||
<q-card-section>
|
||||
<div class="float-right">
|
||||
<q-btn @click="publishNaddr" flat label="Publish Naddr" icon="share" class="q-ml-lg" color="primary"></q-btn>
|
||||
<q-btn @click="publishNaddr" flat label="Publish Market Profile" icon="share" class="q-ml-lg" color="primary"></q-btn>
|
||||
</div>
|
||||
</q-card-section>
|
||||
<q-card-section></q-card-section>
|
||||
|
|
|
|||
|
|
@ -926,6 +926,11 @@ const market = async () => {
|
|||
async publishNaddr() {
|
||||
if (!this.account?.privkey) {
|
||||
this.openAccountDialog()
|
||||
this.$q.notify({
|
||||
message: 'Please login before publshing the market profile',
|
||||
color: 'warning',
|
||||
icon: 'warning'
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue