Fix modal
This commit is contained in:
parent
c79ca6d1af
commit
5cb3d7521d
2 changed files with 7 additions and 5 deletions
|
|
@ -74,10 +74,8 @@ angular.module('copayApp.services').factory('ongoingProcess', function($log, $ti
|
|||
root.onGoingProcessName = name;
|
||||
|
||||
var showName = $filter('translate')(processNames[name] || name);
|
||||
|
||||
if (customHandler) {
|
||||
customHandler(processName, showName, isOn);
|
||||
} else if (root.onGoingProcessName) {
|
||||
|
||||
if (root.onGoingProcessName) {
|
||||
var tmpl;
|
||||
if (isWindowsPhoneApp) tmpl = '<div>' + showName + '</div>';
|
||||
else tmpl = '<div class="item-icon-left">' + showName + '<ion-spinner class="spinner-stable" icon="lines"></ion-spinner></div>';
|
||||
|
|
@ -87,6 +85,10 @@ angular.module('copayApp.services').factory('ongoingProcess', function($log, $ti
|
|||
} else {
|
||||
$ionicLoading.hide();
|
||||
}
|
||||
|
||||
if (customHandler) {
|
||||
customHandler(processName, showName, isOn);
|
||||
}
|
||||
};
|
||||
|
||||
return root;
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ angular
|
|||
function shiftIt(coinIn, coinOut, withdrawalAddress, returnAddress, amount, cb) {
|
||||
// Test if the amount is correct depending on the min and max
|
||||
if (!amount || typeof amount !== 'number') {
|
||||
cb(new Error(gettextCatalog.getString('Amount is not defined'))));
|
||||
cb(new Error(gettextCatalog.getString('Amount is not defined')));
|
||||
} else if (amount < service.marketData.minimum) {
|
||||
cb(new Error(gettextCatalog.getString('Amount is below the minimun')));
|
||||
} else if (amount > service.marketData.maxLimit) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue