-
Notifications
You must be signed in to change notification settings - Fork 173
Fixed translations and Blackbytes QR code #254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
@@ -42,25 +44,8 @@ angular.module('copayApp.controllers').controller('inviteCorrespondentDeviceCont | |||
correspondentListService.startWaitingForPairing(function(pairingInfo){ | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what was the point of moving the function to the service?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because the function is now used in both wallethome.js and invitecorrespondentDevice.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wallethome.js is not included in the diff
@@ -16,10 +16,10 @@ <h1 class="title ellipsis" ng-style="{'color':color}" translate> | |||
<h4 class="title m0" translate>QR Code</h4> | |||
<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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I din't find where code is set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its in wallethome.js @ line 446
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wallethome.js is not even in the diff
@@ -358,7 +358,7 @@ <h1 class="title ellipsis" ng-style="{'color': noColor ? '#4A90E2' : index.backg | |||
</div> | |||
<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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe outside the class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -262,13 +262,13 @@ angular.module('copayApp.controllers').controller('correspondentDeviceController | |||
if (contract.peerAsset === "base") | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need to translate exceptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -16,10 +16,10 @@ <h1 class="title ellipsis" ng-style="{'color':color}" translate> | |||
<h4 class="title m0" translate>QR Code</h4> | |||
<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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wallethome.js is not even in the diff
@@ -42,25 +44,8 @@ angular.module('copayApp.controllers').controller('inviteCorrespondentDeviceCont | |||
correspondentListService.startWaitingForPairing(function(pairingInfo){ | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.