Display loading spinner on mobile devices

This commit is contained in:
Gustavo Maximiliano Cortez 2015-02-13 18:05:09 -03:00
commit 010f1d03c3
3 changed files with 29 additions and 1 deletions

View file

@ -185,6 +185,10 @@ angular.module('copayApp.controllers').controller('SendController',
return;
}
if (isCordova) {
window.plugins.spinnerDialog.show(null, 'Creating transaction...', true);
}
$scope.loading = true;
if ($scope.isWindowsPhoneApp)
$rootScope.wpInputFocused = true;
@ -204,6 +208,9 @@ angular.module('copayApp.controllers').controller('SendController',
amountSat: amount,
comment: comment,
}, function (err, txid, status) {
if (isCordova) {
window.plugins.spinnerDialog.hide();
}
$scope.loading = false;
if ($scope.isWindowsPhoneApp)
$rootScope.wpInputFocused = false;