adds warning modal for encrypt wallet
This commit is contained in:
parent
1481a32813
commit
da42d8b159
2 changed files with 65 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ angular.module('copayApp.services').factory('ongoingProcess', function($log, $ti
|
|||
var isWindowsPhoneApp = platformInfo.isCordova && platformInfo.isWP;
|
||||
|
||||
var ongoingProcess = {};
|
||||
var pausedOngoingProcess = {};
|
||||
|
||||
var processNames = {
|
||||
'broadcastingTx': gettext('Broadcasting transaction'),
|
||||
|
|
@ -63,6 +64,18 @@ angular.module('copayApp.services').factory('ongoingProcess', function($log, $ti
|
|||
return ongoingProcess[processName];
|
||||
};
|
||||
|
||||
root.pause = function() {
|
||||
pausedOngoingProcess = ongoingProcess;
|
||||
root.clear();
|
||||
}
|
||||
|
||||
root.resume = function() {
|
||||
lodash.forEach(pausedOngoingProcess, function(v, k) {
|
||||
root.set(k, v);
|
||||
});
|
||||
pausedOngoingProcess = {};
|
||||
}
|
||||
|
||||
root.set = function(processName, isOn, customHandler) {
|
||||
$log.debug('ongoingProcess', processName, isOn);
|
||||
root[processName] = isOn;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue