From a3115fcafd28b26b30bdbaca51418e1f986b213e Mon Sep 17 00:00:00 2001 From: Puru Date: Sat, 14 Jan 2017 08:28:15 +0545 Subject: [PATCH] Allow user to cancel on going progress and hide spinner dialog User doesn't have ability to cancel on going progress, thus spinner dialog runs forever. Otherwise, during no network connection, if user goes to view their transaction the spinner dialog will run forever and requires app restart to get back. Set root.clear as callback, so user are able to cancel the progress and hide the spinner dialog. --- src/js/services/onGoingProcess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/services/onGoingProcess.js b/src/js/services/onGoingProcess.js index 5319f9cf5..7509aa41a 100644 --- a/src/js/services/onGoingProcess.js +++ b/src/js/services/onGoingProcess.js @@ -79,7 +79,7 @@ angular.module('copayApp.services').factory('ongoingProcess', function($log, $ti customHandler(processName, showName, isOn); } else if (root.onGoingProcessName) { if (isCordova) { - window.plugins.spinnerDialog.show(null, showName, true); + window.plugins.spinnerDialog.show(null, showName, root.clear); } else { var tmpl = '
' + showName + '
';