refactor call tx modal
This commit is contained in:
parent
64b879fcd3
commit
1cfd4c733f
8 changed files with 90 additions and 77 deletions
|
|
@ -131,18 +131,13 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
|||
$scope.close = function() {
|
||||
$scope.searchModal.hide();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
$scope.openTxModal = function(btx) {
|
||||
var self = this;
|
||||
|
||||
$scope.btx = lodash.cloneDeep(btx);
|
||||
$scope.self = self;
|
||||
|
||||
$scope.walletId = wallet.id;
|
||||
$ionicModal.fromTemplateUrl('views/modals/tx-details.html', {
|
||||
scope: $scope,
|
||||
hideDelay: 500
|
||||
scope: $scope
|
||||
}).then(function(modal) {
|
||||
$scope.txDetailsModal = modal;
|
||||
$scope.txDetailsModal.show();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue