From 24800cbb27635894ea902de9728e6c2e59569589 Mon Sep 17 00:00:00 2001 From: Benoit Lavenier <benoit.lavenier@e-is.pro> Date: Fri, 21 Aug 2020 20:11:11 +0200 Subject: [PATCH] [fix] Add payment info, on record view [enh] Crodf: Load the TX progress (TX sum) --- www/js/controllers/app-controllers.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/js/controllers/app-controllers.js b/www/js/controllers/app-controllers.js index e5e79a950..979f48358 100644 --- a/www/js/controllers/app-controllers.js +++ b/www/js/controllers/app-controllers.js @@ -365,7 +365,8 @@ function AppController($scope, $rootScope, $state, $ionicSideMenuDelegate, $q, $ // Link management //////////////////////////////////////// - $scope.openLink = function($event, uri, options) { + // WARN: publish to root scope, to make sure popover (with new scope) can use it + $rootScope.openLink = function($event, uri, options) { $event.stopPropagation(); $event.preventDefault(); @@ -411,7 +412,7 @@ function AppController($scope, $rootScope, $state, $ionicSideMenuDelegate, $q, $ $state.go('app.wot_identity', angular.merge({ pubkey: res.pubkey, - action: res.params && res.params.amount ? 'transfer' : undefined + action: res.params && (res.params.amount || res.params.comment) ? 'transfer' : undefined }, res.params), {reload: true}); } -- GitLab