Cashu: fix recv_token param (#1471)
This commit is contained in:
parent
479ca16118
commit
4593f7a942
1 changed files with 6 additions and 6 deletions
|
|
@ -982,7 +982,7 @@ page_container %}
|
||||||
<!-- <a class="text-secondary" :href="'cashu:' + sendData.tokensBase64"> -->
|
<!-- <a class="text-secondary" :href="'cashu:' + sendData.tokensBase64"> -->
|
||||||
<q-responsive :ratio="1" class="q-mx-xl">
|
<q-responsive :ratio="1" class="q-mx-xl">
|
||||||
<qrcode
|
<qrcode
|
||||||
:value="baseURL + '&recv_token=' + sendData.tokensBase64"
|
:value="baseURL + '?token=' + sendData.tokensBase64"
|
||||||
:options="{width: 340}"
|
:options="{width: 340}"
|
||||||
class="rounded-borders"
|
class="rounded-borders"
|
||||||
>
|
>
|
||||||
|
|
@ -1019,7 +1019,7 @@ page_container %}
|
||||||
<q-btn
|
<q-btn
|
||||||
color="primary"
|
color="primary"
|
||||||
outline
|
outline
|
||||||
@click="copyText(baseURL + '&recv_token=' + sendData.tokensBase64)"
|
@click="copyText(baseURL + '?token=' + sendData.tokensBase64)"
|
||||||
>Copy link</q-btn
|
>Copy link</q-btn
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -2893,9 +2893,9 @@ page_container %}
|
||||||
// run migrations
|
// run migrations
|
||||||
await this.migrationLocalstorage()
|
await this.migrationLocalstorage()
|
||||||
|
|
||||||
// get recv_token to receive tokens from a link
|
// get token to receive tokens from a link
|
||||||
if (params.get('recv_token')) {
|
if (params.get('token')) {
|
||||||
tokenBase64 = params.get('recv_token')
|
tokenBase64 = params.get('token')
|
||||||
// make sure to react only to tokens not in the users history
|
// make sure to react only to tokens not in the users history
|
||||||
let seen = false
|
let seen = false
|
||||||
for (var i = 0; i < this.historyTokens.length; i++) {
|
for (var i = 0; i < this.historyTokens.length; i++) {
|
||||||
|
|
@ -2906,7 +2906,7 @@ page_container %}
|
||||||
}
|
}
|
||||||
if (!seen) {
|
if (!seen) {
|
||||||
// show receive token dialog
|
// show receive token dialog
|
||||||
this.receiveData.tokensBase64 = params.get('recv_token')
|
this.receiveData.tokensBase64 = params.get('token')
|
||||||
this.showReceiveTokens = true
|
this.showReceiveTokens = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue