Merge pull request #148 from JDonadio/bug/open-tx-modal
Fix open sent tx modal
This commit is contained in:
commit
8a0d356956
2 changed files with 6 additions and 6 deletions
|
|
@ -25,7 +25,7 @@ angular.module('copayApp.controllers').controller('activityController',
|
|||
};
|
||||
|
||||
$scope.openNotificationModal = function(n) {
|
||||
if (!n.txpId && n.txid) {
|
||||
if (n.txid) {
|
||||
openTxModal(n);
|
||||
} else {
|
||||
var txp = lodash.find($scope.txps, {
|
||||
|
|
@ -34,7 +34,7 @@ angular.module('copayApp.controllers').controller('activityController',
|
|||
if (txp) txpModalService.open(txp);
|
||||
else {
|
||||
$log.warn('No txp found');
|
||||
return popupService.showAlert(gettextCatalog.getString('Transaction not found'), null);
|
||||
return popupService.showAlert(null, gettextCatalog.getString('Transaction not found'));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -53,7 +53,7 @@ angular.module('copayApp.controllers').controller('activityController',
|
|||
|
||||
if (!tx) {
|
||||
$log.warn('No tx found');
|
||||
return popupService.showAlert(gettextCatalog.getString('Transaction not found'), null);
|
||||
return popupService.showAlert(null, gettextCatalog.getString('Transaction not found'));
|
||||
}
|
||||
|
||||
$scope.wallet = wallet;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
|||
});
|
||||
|
||||
$scope.openNotificationModal = function(n) {
|
||||
if (!n.txpId && n.txid) {
|
||||
if (n.txid) {
|
||||
openTxModal(n);
|
||||
} else {
|
||||
var txp = lodash.find($scope.txps, {
|
||||
|
|
@ -26,7 +26,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
|||
if (txp) txpModalService.open(txp);
|
||||
else {
|
||||
$log.warn('No txp found');
|
||||
return popupService.showAlert(gettextCatalog.getString('Transaction not found'), null);
|
||||
return popupService.showAlert(null, gettextCatalog.getString('Transaction not found'));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -45,7 +45,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
|||
|
||||
if (!tx) {
|
||||
$log.warn('No tx found');
|
||||
return popupService.showAlert(gettextCatalog.getString('Transaction not found'), null);
|
||||
return popupService.showAlert(null, gettextCatalog.getString('Transaction not found'));
|
||||
}
|
||||
|
||||
$scope.wallet = wallet;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue