better tx details

This commit is contained in:
Matias Alejo Garcia 2014-12-09 14:27:09 -03:00
commit 5f5d74944f
6 changed files with 71 additions and 81 deletions

View file

@ -174,7 +174,7 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
}
}
});
}
};
function getParam(sname) {
var params = location.search.substr(location.search.indexOf("?") + 1);

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('HomeWalletController', function($scope, $rootScope, $timeout, $filter, $location, rateService, notification, identityService) {
angular.module('copayApp.controllers').controller('HomeWalletController', function($scope, $rootScope, $timeout, $filter, $modal, rateService, notification, identityService) {
$scope.initHome = function() {
var w = $rootScope.wallet;
@ -125,4 +125,28 @@ angular.module('copayApp.controllers').controller('HomeWalletController', functi
_updateTxs();
};
$scope.openTxModal = function(btx) {
var ModalInstanceCtrl = function($scope, $modalInstance) {
$scope.btx = btx;
$scope.getShortNetworkName = function() {
var w = $rootScope.wallet;
return w.getNetworkName().substring(0, 4);
};
$scope.cancel = function() {
$modalInstance.dismiss('cancel');
};
};
$modal.open({
templateUrl: 'views/modals/tx-details.html',
windowClass: 'tiny',
controller: ModalInstanceCtrl,
});
};
});