use new txp-detail view from activity

This commit is contained in:
Marty Alcala 2016-10-21 19:04:18 -04:00
parent 5234231dad
commit 83cdc77e35
1 changed files with 8 additions and 7 deletions

View File

@ -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);