feat: handle intents (#2161)

if lightning/lnurl param is present in /wallet, it will pass to the decode dialogue

* chore: code format
* fix: call to `decodeRequest`
* feat: set `position="top"` for all dialogs (avoid mobile keyboard overlap)

---------

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
Arc
2023-12-11 20:40:22 +01:00
committed by GitHub
co-authored by Vlad Stan
parent 8352223704
commit 297c42371d
2 changed files with 13 additions and 6 deletions
+7
View File
@@ -854,6 +854,13 @@ new Vue({
}
},
created: function () {
let urlParams = new URLSearchParams(window.location.search)
if (urlParams.has('lightning') || urlParams.has('lnurl')) {
this.parse.data.request =
urlParams.get('lightning') || urlParams.get('lnurl')
this.decodeRequest()
this.parse.show = true
}
this.fetchBalance()
this.fetchPayments()