use new txp-detail view from activity

This commit is contained in:
Marty Alcala 2016-10-21 19:04:18 -04:00
commit 83cdc77e35

View file

@ -1,7 +1,7 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('activityController', 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.openTxpModal = txpModalService.open;
$scope.fetchingNotifications = true; $scope.fetchingNotifications = true;
@ -66,12 +66,13 @@ angular.module('copayApp.controllers').controller('activityController',
$scope.wallet = wallet; $scope.wallet = wallet;
$scope.btx = lodash.cloneDeep(tx); $scope.btx = lodash.cloneDeep(tx);
$ionicModal.fromTemplateUrl('views/modals/tx-details.html', { $state.go('tabs.wallet.tx-details', {tx: $scope.btx, wallet: $scope.wallet});
scope: $scope // $ionicModal.fromTemplateUrl('views/modals/tx-details.html', {
}).then(function(modal) { // scope: $scope
$scope.txDetailsModal = modal; // }).then(function(modal) {
$scope.txDetailsModal.show(); // $scope.txDetailsModal = modal;
}); // $scope.txDetailsModal.show();
// });
walletService.getTxNote(wallet, n.txid, function(err, note) { walletService.getTxNote(wallet, n.txid, function(err, note) {
if (err) $log.warn('Could not fetch transaction note: ' + err); if (err) $log.warn('Could not fetch transaction note: ' + err);