From 490a70786034127f0c0ca3980d9c1e72656a8620 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Fri, 17 Mar 2017 10:39:58 -0300 Subject: [PATCH] Get tx after view loaded. If error, go back to home. --- src/js/controllers/tx-details.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/controllers/tx-details.js b/src/js/controllers/tx-details.js index ea14fb5da..5e6e2b886 100644 --- a/src/js/controllers/tx-details.js +++ b/src/js/controllers/tx-details.js @@ -11,7 +11,10 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio $scope.wallet = profileService.getWallet(data.stateParams.walletId); $scope.color = $scope.wallet.color; $scope.copayerId = $scope.wallet.credentials.copayerId; - $scope.isShared = $scope.wallet.credentials.n > 1; + $scope.isShared = $scope.wallet.credentials.n > 1; + }); + + $scope.$on("$ionicView.afterEnter", function(event) { updateTx(); listeners = [