From 83cdc77e35c9c42d2cce2dc25608f4dbda551d06 Mon Sep 17 00:00:00 2001 From: Marty Alcala Date: Fri, 21 Oct 2016 19:04:18 -0400 Subject: [PATCH] use new txp-detail view from activity --- src/js/controllers/activity.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/js/controllers/activity.js b/src/js/controllers/activity.js index 304e5b62b..7e24f2bf5 100644 --- a/src/js/controllers/activity.js +++ b/src/js/controllers/activity.js @@ -1,7 +1,7 @@ 'use strict'; angular.module('copayApp.controllers').controller('activityController', - function($timeout, $scope, $log, $ionicModal, lodash, txpModalService, profileService, walletService, ongoingProcess, popupService, gettextCatalog) { + function($timeout, $scope, $log, $ionicModal, lodash, txpModalService, profileService, walletService, ongoingProcess, popupService, gettextCatalog, $state) { $scope.openTxpModal = txpModalService.open; $scope.fetchingNotifications = true; @@ -66,12 +66,13 @@ angular.module('copayApp.controllers').controller('activityController', $scope.wallet = wallet; $scope.btx = lodash.cloneDeep(tx); - $ionicModal.fromTemplateUrl('views/modals/tx-details.html', { - scope: $scope - }).then(function(modal) { - $scope.txDetailsModal = modal; - $scope.txDetailsModal.show(); - }); + $state.go('tabs.wallet.tx-details', {tx: $scope.btx, wallet: $scope.wallet}); + // $ionicModal.fromTemplateUrl('views/modals/tx-details.html', { + // scope: $scope + // }).then(function(modal) { + // $scope.txDetailsModal = modal; + // $scope.txDetailsModal.show(); + // }); walletService.getTxNote(wallet, n.txid, function(err, note) { if (err) $log.warn('Could not fetch transaction note: ' + err);