popup warning about coin if plain address used
This commit is contained in:
parent
d31a2115b1
commit
ec6b066e19
1 changed files with 66 additions and 53 deletions
|
|
@ -397,6 +397,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
|||
|
||||
$scope.finish = function() {
|
||||
|
||||
function finish() {
|
||||
var unit = availableUnits[unitIndex];
|
||||
var _amount = evaluate(format($scope.amountModel.amount));
|
||||
var coin = unit.id;
|
||||
|
|
@ -459,5 +460,17 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
|||
$state.transitionTo('tabs.send.confirm', confirmData);
|
||||
}
|
||||
$scope.useSendMax = null;
|
||||
}
|
||||
|
||||
if ($scope.showWarningMessage) {
|
||||
var message = 'Are you sure you want to send ' + $scope.unit.toUpperCase() + '?';
|
||||
popupService.showConfirm(message, null, 'Yes', 'No', function(res) {
|
||||
if (!res) return;
|
||||
finish();
|
||||
});
|
||||
} else {
|
||||
finish();
|
||||
}
|
||||
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue