use txp wallet id for confirm button color
This commit is contained in:
parent
02140af96a
commit
2cb099057e
2 changed files with 4 additions and 2 deletions
|
|
@ -31,7 +31,7 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="half-row left">
|
<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>
|
<span class="size-12" translate>Confirm</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1689,8 +1689,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
|
|
||||||
function openConfirmationPopup(txp, cb) {
|
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({
|
self.confirmationPopup = $ionicPopup.show({
|
||||||
templateUrl: 'views/includes/confirm-tx.html',
|
templateUrl: 'views/includes/confirm-tx.html',
|
||||||
scope: $scope,
|
scope: $scope,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue