mirror of https://github.com/BTCPrivate/copay.git
Show confirmation popup before reject a proposal
This commit is contained in:
parent
3ac30e8472
commit
9377a55bcd
|
@ -96,6 +96,10 @@ angular.module('copayApp.controllers').controller('txpDetailsController', functi
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.reject = function(txp) {
|
$scope.reject = function(txp) {
|
||||||
|
var title = gettextCatalog.getString('Warning!');
|
||||||
|
var msg = gettextCatalog.getString('Are you sure you want to reject this transaction?');
|
||||||
|
popupService.showConfirm(title, msg, null, null, function(res) {
|
||||||
|
if (res) {
|
||||||
$scope.loading = true;
|
$scope.loading = true;
|
||||||
|
|
||||||
walletService.reject($scope.wallet, $scope.tx, function(err, txpr) {
|
walletService.reject($scope.wallet, $scope.tx, function(err, txpr) {
|
||||||
|
@ -104,8 +108,8 @@ angular.module('copayApp.controllers').controller('txpDetailsController', functi
|
||||||
|
|
||||||
$scope.close();
|
$scope.close();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.remove = function() {
|
$scope.remove = function() {
|
||||||
|
|
Loading…
Reference in New Issue