2016-06-10 15:16:02 -03:00
|
|
|
'use strict';
|
|
|
|
|
|
2016-06-16 18:29:56 -03:00
|
|
|
angular.module('copayApp.controllers').controller('coinbaseTxDetailsController', function($scope, $rootScope, coinbaseService) {
|
2016-06-10 15:16:02 -03:00
|
|
|
|
|
|
|
|
$scope.remove = function() {
|
|
|
|
|
coinbaseService.savePendingTransaction($scope.tx, {
|
|
|
|
|
remove: true
|
|
|
|
|
}, function(err) {
|
|
|
|
|
$rootScope.$emit('Local/CoinbaseTx');
|
|
|
|
|
$scope.cancel();
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.cancel = function() {
|
|
|
|
|
$scope.coinbaseTxDetailsModal.hide();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
});
|