mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 06:48:02 +01:00
fix: show message when device not paired
This commit is contained in:
parent
95e7633e19
commit
739646f702
3 changed files with 13 additions and 5 deletions
|
@ -87,8 +87,12 @@ async function payment(path) {
|
|||
this.showChecking = true
|
||||
try {
|
||||
if (!this.serialSignerRef.isConnected()) {
|
||||
const portOpen = await this.serialSignerRef.openSerialPort()
|
||||
if (!portOpen) return
|
||||
this.$q.notify({
|
||||
type: 'warning',
|
||||
message: 'Please connect to a Signing device first!',
|
||||
timeout: 10000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!this.serialSignerRef.isAuthenticated()) {
|
||||
await this.serialSignerRef.hwwShowPasswordDialog()
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
<div class="row q-mt-lg">
|
||||
<div class="col-12">
|
||||
<q-badge class="text-subtitle2" color="yellow" text-color="black">
|
||||
<span>Confirm on the hardware device also.</span>
|
||||
<span>Confirm then check the Hardware Device.</span>
|
||||
</q-badge>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -255,8 +255,12 @@ async function walletList(path) {
|
|||
getXpubFromDevice: async function () {
|
||||
try {
|
||||
if (!this.serialSignerRef.isConnected()) {
|
||||
const portOpen = await this.serialSignerRef.openSerialPort()
|
||||
if (!portOpen) return
|
||||
this.$q.notify({
|
||||
type: 'warning',
|
||||
message: 'Please connect to a hardware Device first!',
|
||||
timeout: 10000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!this.serialSignerRef.isAuthenticated()) {
|
||||
await this.serialSignerRef.hwwShowPasswordDialog()
|
||||
|
|
Loading…
Add table
Reference in a new issue