fix: show message when device not paired

This commit is contained in:
Vlad Stan
2022-08-19 18:54:54 +03:00
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()