commit
eeaa02e3bb
3 changed files with 8 additions and 3 deletions
|
|
@ -133,6 +133,11 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
setAvailableUnits();
|
setAvailableUnits();
|
||||||
updateUnitUI();
|
updateUnitUI();
|
||||||
|
|
||||||
|
$scope.hasMaxAmount = true;
|
||||||
|
if ($ionicHistory.backView().stateName == 'tabs.receive') {
|
||||||
|
$scope.hasMaxAmount = false;
|
||||||
|
}
|
||||||
|
|
||||||
$scope.showMenu = $ionicHistory.backView() && ($ionicHistory.backView().stateName == 'tabs.send' || $ionicHistory.backView().stateName == 'tabs.bitpayCard');
|
$scope.showMenu = $ionicHistory.backView() && ($ionicHistory.backView().stateName == 'tabs.send' || $ionicHistory.backView().stateName == 'tabs.bitpayCard');
|
||||||
$scope.recipientType = data.stateParams.recipientType || null;
|
$scope.recipientType = data.stateParams.recipientType || null;
|
||||||
$scope.toAddress = data.stateParams.toAddress;
|
$scope.toAddress = data.stateParams.toAddress;
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
||||||
|
|
||||||
// If display is not configure, take the default value
|
// If display is not configure, take the default value
|
||||||
if (!configCache.wallet.settings.priceDisplay) {
|
if (!configCache.wallet.settings.priceDisplay) {
|
||||||
configCache.wallet.settings.display = defaultConfig.wallet.settings.priceDisplay;
|
configCache.wallet.settings.priceDisplay = defaultConfig.wallet.settings.priceDisplay;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert tarascash wallet to new style cash wallet
|
// Convert tarascash wallet to new style cash wallet
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
<div class="amount__result-equiv"><> {{alternativeAmount || '0.00'}} {{alternativeUnit}}</div>
|
<div class="amount__result-equiv"><> {{alternativeAmount || '0.00'}} {{alternativeUnit}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button class="button button-sendmax" ng-click="sendMax()">
|
<button ng-if="hasMaxAmount" class="button button-sendmax" ng-click="sendMax()">
|
||||||
<span>
|
<span>
|
||||||
<i class="icon ion-ios-speedometer-outline"></i> 
|
<i class="icon ion-ios-speedometer-outline"></i> 
|
||||||
<span translate>Send max amount</span>
|
<span translate>Send max amount</span>
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
<span><> {{alternativeAmount || '0.00'}} {{alternativeUnit}}</span>
|
<span><> {{alternativeAmount || '0.00'}} {{alternativeUnit}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button class="button button-sendmax" ng-click="sendMax()">
|
<button ng-if="hasMaxAmount" class="button button-sendmax" ng-click="sendMax()">
|
||||||
<span>
|
<span>
|
||||||
<i class="icon ion-ios-speedometer-outline"></i> 
|
<i class="icon ion-ios-speedometer-outline"></i> 
|
||||||
<span translate>Send max amount</span>
|
<span translate>Send max amount</span>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue