use icon properly
This commit is contained in:
parent
515b806fa3
commit
9472f095eb
5 changed files with 35 additions and 9 deletions
|
|
@ -100,6 +100,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
toAddress: $scope.toAddress,
|
toAddress: $scope.toAddress,
|
||||||
toName: $scope.toName,
|
toName: $scope.toName,
|
||||||
toEmail: $scope.toEmail,
|
toEmail: $scope.toEmail,
|
||||||
|
toColor: $scope.toColor,
|
||||||
useSendMax: true,
|
useSendMax: true,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
@ -237,7 +238,8 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
toAmount: (amount * unitToSatoshi).toFixed(0),
|
toAmount: (amount * unitToSatoshi).toFixed(0),
|
||||||
toAddress: $scope.toAddress,
|
toAddress: $scope.toAddress,
|
||||||
toName: $scope.toName,
|
toName: $scope.toName,
|
||||||
toEmail: $scope.toEmail
|
toEmail: $scope.toEmail,
|
||||||
|
toColor: $scope.toColor,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,11 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
toAmount = data.stateParams.toAmount;
|
toAmount = data.stateParams.toAmount;
|
||||||
cachedSendMax = {};
|
cachedSendMax = {};
|
||||||
$scope.useSendMax = data.stateParams.useSendMax == 'true' ? true : false;
|
$scope.useSendMax = data.stateParams.useSendMax == 'true' ? true : false;
|
||||||
var isWallet = data.stateParams.isWallet || 'false';
|
$scope.isWallet = data.stateParams.isWallet == 'true' ? true : false;
|
||||||
$scope.isWallet = (isWallet.toString().trim().toLowerCase() == 'true' ? true : false);
|
|
||||||
$scope.toAddress = data.stateParams.toAddress;
|
$scope.toAddress = data.stateParams.toAddress;
|
||||||
$scope.toName = data.stateParams.toName;
|
$scope.toName = data.stateParams.toName;
|
||||||
$scope.toEmail = data.stateParams.toEmail;
|
$scope.toEmail = data.stateParams.toEmail;
|
||||||
|
$scope.toColor = data.stateParams.toColor;
|
||||||
$scope.description = data.stateParams.description;
|
$scope.description = data.stateParams.description;
|
||||||
$scope.paypro = data.stateParams.paypro;
|
$scope.paypro = data.stateParams.paypro;
|
||||||
$scope.insufficientFunds = false;
|
$scope.insufficientFunds = false;
|
||||||
|
|
@ -503,8 +503,8 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
$log.debug('statusChangeHandler: ', processName, showName, isOn);
|
$log.debug('statusChangeHandler: ', processName, showName, isOn);
|
||||||
if (
|
if (
|
||||||
(
|
(
|
||||||
processName === 'broadcastingTx' ||
|
processName === 'broadcastingTx' ||
|
||||||
((processName === 'signingTx') && $scope.wallet.m > 1) ||
|
((processName === 'signingTx') && $scope.wallet.m > 1) ||
|
||||||
(processName == 'sendingTx' && !$scope.wallet.canSign() && !$scope.wallet.isPrivKeyExternal())
|
(processName == 'sendingTx' && !$scope.wallet.canSign() && !$scope.wallet.isPrivKeyExternal())
|
||||||
) && !isOn) {
|
) && !isOn) {
|
||||||
$scope.sendStatus = 'success';
|
$scope.sendStatus = 'success';
|
||||||
|
|
|
||||||
|
|
@ -283,7 +283,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.state('tabs.send.confirm', {
|
.state('tabs.send.confirm', {
|
||||||
url: '/confirm/:isWallet/:toAddress/:toName/:toAmount/:toEmail/:description/:useSendMax',
|
url: '/confirm/:isWallet/:toAddress/:toName/:toAmount/:toEmail/:toColor/:description/:useSendMax',
|
||||||
views: {
|
views: {
|
||||||
'tab-send@tabs': {
|
'tab-send@tabs': {
|
||||||
controller: 'confirmController',
|
controller: 'confirmController',
|
||||||
|
|
|
||||||
|
|
@ -7,4 +7,11 @@
|
||||||
.tx-details-content > .scroll {
|
.tx-details-content > .scroll {
|
||||||
padding-bottom: .25rem;
|
padding-bottom: .25rem;
|
||||||
}
|
}
|
||||||
|
.gravatar-contact {
|
||||||
|
display: flex;
|
||||||
|
margin-left: -3px;
|
||||||
|
span {
|
||||||
|
margin: 5px 0 0 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,11 +26,15 @@
|
||||||
<span class="item-note" ng-if="!paymentExpired.value">{{remainingTimeStr.value}}</span>
|
<span class="item-note" ng-if="!paymentExpired.value">{{remainingTimeStr.value}}</span>
|
||||||
<span class="item-note" ng-if="paymentExpired.value" ng-style="{'color': 'red'}" translate>Expired</span>
|
<span class="item-note" ng-if="paymentExpired.value" ng-style="{'color': 'red'}" translate>Expired</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class="label" translate>To</span>
|
<span class="label" translate>To</span>
|
||||||
<span class="payment-proposal-to">
|
<span class="payment-proposal-to" ng-if="!isWallet">
|
||||||
<img src="img/icon-bitcoin-small.svg">
|
<img ng-if="cardId" src="img/icon-card.svg" width="34">
|
||||||
|
<i ng-if="isGiftCard" class="icon big-icon-svg">
|
||||||
|
<div class="bg icon-amazon"></div>
|
||||||
|
</i>
|
||||||
|
<img ng-if="isGlidera" src="img/glidera-logo.png" width="90"/>
|
||||||
|
|
||||||
<div copy-to-clipboard="toAddress" ng-if="!paypro" class="ellipsis">
|
<div copy-to-clipboard="toAddress" ng-if="!paypro" class="ellipsis">
|
||||||
<contact ng-if="!toName" address="{{toAddress}}"></contact>
|
<contact ng-if="!toName" address="{{toAddress}}"></contact>
|
||||||
|
|
@ -46,6 +50,19 @@
|
||||||
<!-- <contact ng-if="!tx.hasMultiplesOutputs" class="ellipsis" address="{{toAddress}}"></contact>
|
<!-- <contact ng-if="!tx.hasMultiplesOutputs" class="ellipsis" address="{{toAddress}}"></contact>
|
||||||
<span ng-if="tx.hasMultiplesOutputs" translate>Multiple recipients</span> -->
|
<span ng-if="tx.hasMultiplesOutputs" translate>Multiple recipients</span> -->
|
||||||
</span>
|
</span>
|
||||||
|
<div class="wallet" ng-if="isWallet">
|
||||||
|
<i class="icon big-icon-svg">
|
||||||
|
<img src="img/icon-wallet.svg" ng-style="{'background-color': toColor}" class="bg"/>
|
||||||
|
</i>
|
||||||
|
<div copy-to-clipboard="toAddress" class="ellipsis">
|
||||||
|
<contact ng-if="!toName" address="{{toAddress}}"></contact>
|
||||||
|
<span class="size-14" ng-if="toName">{{toName}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div ng-if="toEmail && !isChromeApp" class="gravatar-contact">
|
||||||
|
<gravatar class="send-gravatar" name="{{toName}}" height="30" width="30" email="{{toEmail}}"></gravatar>
|
||||||
|
<span class="size-14" ng-if="toName">{{toName}}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a class="item item-icon-right" ng-hide="!useSendMax && (insufficientFunds || noMatchingWallet)" ng-click="showWalletSelector()">
|
<a class="item item-icon-right" ng-hide="!useSendMax && (insufficientFunds || noMatchingWallet)" ng-click="showWalletSelector()">
|
||||||
<span class="label" translate>From</span>
|
<span class="label" translate>From</span>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue