use txp wallet id for confirm button color

This commit is contained in:
Gabriel Bazán 2016-08-04 10:48:20 -03:00 committed by Gustavo Maximiliano Cortez
parent 02140af96a
commit 2cb099057e
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
2 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,7 @@
</button>
</div>
<div class="half-row left">
<button ng-click="accept()" class="round expand" ng-style="{'background-color':index.backgroundColor}" autofocus>
<button ng-click="accept()" class="round expand" ng-style="{'background-color': color}" autofocus>
<span class="size-12" translate>Confirm</span>
</button>
</div>

View File

@ -1689,8 +1689,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
function openConfirmationPopup(txp, cb) {
$scope.tx = txFormatService.processTx(txp);
var config = configService.getSync();
$scope.color = config.colorFor[txp.walletId];
$scope.tx = txFormatService.processTx(txp);
self.confirmationPopup = $ionicPopup.show({
templateUrl: 'views/includes/confirm-tx.html',
scope: $scope,