moved send max button to middle of screen
This commit is contained in:
parent
1b9f2c1e5f
commit
584d85f127
3 changed files with 29 additions and 17 deletions
|
|
@ -128,7 +128,6 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
|||
$scope.toName = data.stateParams.toName;
|
||||
$scope.toEmail = data.stateParams.toEmail;
|
||||
$scope.toColor = data.stateParams.toColor;
|
||||
$scope.showSendMax = false;
|
||||
|
||||
if (!$scope.nextStep && !data.stateParams.toAddress) {
|
||||
$log.error('Bad params at amount')
|
||||
|
|
@ -208,12 +207,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
|||
if (value && evaluate(value) > 0) paste(evaluate(value));
|
||||
};
|
||||
|
||||
$scope.showSendMaxMenu = function() {
|
||||
$scope.showSendMax = true;
|
||||
};
|
||||
|
||||
$scope.sendMax = function() {
|
||||
$scope.showSendMax = false;
|
||||
$scope.useSendMax = true;
|
||||
$scope.finish();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -40,3 +40,7 @@
|
|||
@include button-outline($v-button-secondary-color);
|
||||
}
|
||||
}
|
||||
|
||||
.button-sendmax {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,13 +3,7 @@
|
|||
<ion-nav-title>
|
||||
{{'Enter amount' | translate}}
|
||||
</ion-nav-title>
|
||||
<ion-nav-back-button ng-click="goBack()">
|
||||
</ion-nav-back-button>
|
||||
<ion-nav-buttons side="secondary">
|
||||
<button class="button back-button" ng-click="showSendMaxMenu()" ng-if="showMenu">
|
||||
<i class="icon ion-ios-more"></i>
|
||||
</button>
|
||||
</ion-nav-buttons>
|
||||
<ion-nav-back-button ng-click="goBack()"></ion-nav-back-button>
|
||||
</ion-nav-bar>
|
||||
<ion-content scroll="false">
|
||||
|
||||
|
|
@ -54,6 +48,18 @@
|
|||
<div class="amount__result" ng-show="globalResult">{{globalResult}} {{unit}}</div>
|
||||
<div class="amount__result-equiv">≈ {{alternativeAmount || '0.00'}} {{alternativeUnit}}</div>
|
||||
</div>
|
||||
<div>
|
||||
<button class="button button-standard button-sendmax">
|
||||
<a class="item item-icon-left option no-border" ng-click="sendMax()">
|
||||
<i class="icon ion-ios-speedometer-outline"></i>
|
||||
<div class="item-selector-inner">
|
||||
<div class="item-selector-details">
|
||||
<div class="item-selector-name" translate>Send max amount</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -71,6 +77,18 @@
|
|||
<span ng-show="globalResult">{{globalResult}} {{unit}}</span>
|
||||
<span>≈ {{alternativeAmount || '0.00'}} {{alternativeUnit}}</span>
|
||||
</div>
|
||||
<div>
|
||||
<button class="button button-standard button-sendmax">
|
||||
<a class="item item-icon-left option no-border" ng-click="sendMax()">
|
||||
<i class="icon ion-ios-speedometer-outline"></i>
|
||||
<div class="item-selector-inner">
|
||||
<div class="item-selector-details">
|
||||
<div class="item-selector-name" translate>Send max amount</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="item" ng-show="isAndroid || isIos">
|
||||
|
|
@ -118,8 +136,4 @@
|
|||
</div>
|
||||
|
||||
</ion-content>
|
||||
<item-selector
|
||||
item-selector-show="showSendMax"
|
||||
item-selector-on-select="sendMax">
|
||||
</item-selector>
|
||||
</ion-view>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue