Fixed translations and Blackbytes QR code#254
Conversation
| console.log("beginAddCorrespondent " + pairingInfo.pairing_secret); | ||
| $scope.code = pairingInfo.device_pubkey + "@" + pairingInfo.hub + "#" + pairingInfo.pairing_secret; | ||
|
|
||
| function determineQRcodeVersionFromString( inputtext ) { |
There was a problem hiding this comment.
what was the point of moving the function to the service?
There was a problem hiding this comment.
because the function is now used in both wallethome.js and invitecorrespondentDevice.js
There was a problem hiding this comment.
wallethome.js is not included in the diff
| <ul class="no-bullet size-14 m0"> | ||
| <li class="line-b p10 oh text-center"> | ||
| <qrcode size="220" version="6" data="{{protocol}}:{{addr + '?amount=' + amountInSmallestUnits + asset_param}}"></qrcode> | ||
| <qrcode size="220" version="{{qr_version}}" data="{{protocol}}:{{code}}"></qrcode> |
There was a problem hiding this comment.
I din't find where code is set
There was a problem hiding this comment.
its in wallethome.js @ line 446
There was a problem hiding this comment.
wallethome.js is not even in the diff
| <div class="large-4 medium-4 small-4 columns adaptive"> | ||
| <button type="button" | ||
| class="button expand round outline dark-gray tiny" | ||
| class="button expand translate round outline dark-gray tiny" |
There was a problem hiding this comment.
maybe outside the class?
| peer_amount *= walletSettings.unitValue; | ||
| if (contract.peerAsset === constants.BLACKBYTES_ASSET) | ||
| throw Error("peer asset cannot be blackbytes"); | ||
| throw Error(gettext("peer asset cannot be blackbytes")); |
There was a problem hiding this comment.
we don't need to translate exceptions
| <ul class="no-bullet size-14 m0"> | ||
| <li class="line-b p10 oh text-center"> | ||
| <qrcode size="220" version="6" data="{{protocol}}:{{addr + '?amount=' + amountInSmallestUnits + asset_param}}"></qrcode> | ||
| <qrcode size="220" version="{{qr_version}}" data="{{protocol}}:{{code}}"></qrcode> |
There was a problem hiding this comment.
wallethome.js is not even in the diff
| console.log("beginAddCorrespondent " + pairingInfo.pairing_secret); | ||
| $scope.code = pairingInfo.device_pubkey + "@" + pairingInfo.hub + "#" + pairingInfo.pairing_secret; | ||
|
|
||
| function determineQRcodeVersionFromString( inputtext ) { |
There was a problem hiding this comment.
wallethome.js is not included in the diff
Some texts related to payments and contracts did not use translations. Also fixed that a payment request for Blackbytes did not show the QR code.