add tx modal - fix search tx

This commit is contained in:
Javier 2016-05-20 11:37:13 -03:00
commit 6f15afc638
6 changed files with 264 additions and 161 deletions

View file

@ -1349,8 +1349,21 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
return this.alternativeIsoCode;
};
this.openTxModal = function(tx) {
$rootScope.$emit('Local/TxModal', tx);
this.openTxModal = function(btx) {
var self = this;
$scope.btx = btx;
$scope.self = self;
$ionicModal.fromTemplateUrl('views/modals/tx-details.html', {
scope: $scope,
backdropClickToClose: false,
hardwareBackButtonClose: false,
hideDelay: 500
}).then(function(modal) {
$scope.txDetailsModal = modal;
$scope.txDetailsModal.show();
});
};
this.hasAction = function(actions, action) {