Skip to content

Commit 4cf38cf

Browse files
allow payment request QR only for public assets
1 parent ef41762 commit 4cf38cf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

public/views/modals/customized-amount.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ <h4 class="title m0" translate>Details</h4>
7171
<label for="asset">
7272
<span translate>Asset</span>
7373
</label>
74-
<select class="m10t" ng-model="index.assetIndex" id="asset" name="asset" ng-options="index.arrBalances.indexOf(balance) as (balance.asset === 'base' ? 'bytes' : (balance.asset === index.BLACKBYTES_ASSET ? 'blackbytes' : (balance.name || balance.asset))) for balance in index.arrBalances"></select>
74+
<select class="m10t" ng-model="index.assetIndex" id="asset" name="asset" ng-options="index.arrBalances.indexOf(balance) as (balance.asset === 'base' ? 'bytes' : (balance.name || balance.asset)) for balance in arrPublicBalances"></select>
7575
</div>
7676
<button type="submit" class="button black round expand" ng-disabled="amountForm.$invalid" ng-style="{'background-color':color}">
7777
{{buttonLabel}}

src/js/controllers/walletHome.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,7 @@ angular.module('copayApp.controllers')
852852
$scope.isCordova = isCordova;
853853
$scope.buttonLabel = gettextCatalog.getString('Generate QR Code');
854854
$scope.protocol = conf.program.replace(/byteball/i, 'obyte');
855+
$scope.arrPublicBalances = indexScope.arrBalances.filter(b => !b.is_private);
855856

856857
Object.defineProperty($scope, "_customAmount", {
857858
get: function() {

0 commit comments

Comments
 (0)