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.
This commit is contained in:
parent
22f372c7e0
commit
a3115fcafd
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = '<div class="item-icon-left">' + showName + '<ion-spinner class="spinner-stable" icon="lines"></ion-spinner></div>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue