open a rejected txp
This commit is contained in:
parent
60a7f0c287
commit
c12f33b1d9
3 changed files with 28 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.services').factory('txpModalService', function(configService, $rootScope, $ionicModal) {
|
||||
angular.module('copayApp.services').factory('txpModalService', function(configService, profileService, $rootScope, $ionicModal) {
|
||||
|
||||
var root = {};
|
||||
|
||||
|
|
@ -11,11 +11,12 @@ angular.module('copayApp.services').factory('txpModalService', function(configSe
|
|||
|
||||
|
||||
root.open = function(tx) {
|
||||
var wallet = tx.wallet ? tx.wallet : profileService.getWallet(tx.walletId);
|
||||
var config = configService.getSync().wallet;
|
||||
var scope = $rootScope.$new(true);
|
||||
scope.tx = tx;
|
||||
scope.wallet = tx.wallet;
|
||||
scope.copayers = tx.wallet ? tx.wallet.copayers : null;
|
||||
scope.wallet = wallet;
|
||||
scope.copayers = wallet ? wallet.copayers : null;
|
||||
scope.isGlidera = glideraActive;
|
||||
scope.currentSpendUnconfirmed = config.spendUnconfirmed;
|
||||
// scope.tx.hasMultiplesOutputs = true; // Uncomment to test multiple outputs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue