|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 5.1 KiB |
BIN
cordova/android/res/drawable-xxhdpi/icon.png
Normal file
|
After Width: | Height: | Size: 7.9 KiB |
BIN
cordova/android/res/drawable-xxxhdpi/icon.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
|
|
@ -425,9 +425,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
};
|
};
|
||||||
|
|
||||||
// This handles errors from BWS/index with are nomally
|
// This handles errors from BWS/index with are nomally
|
||||||
// trigger from async events (like updates)
|
// trigger from async events (like updates).
|
||||||
self.handleError = function(err) {
|
// Debounce function avoids multiple popups
|
||||||
$log.warn('Client ERROR:', err);
|
var _handleError = function(err) {
|
||||||
|
$log.warn('Client ERROR: ', err);
|
||||||
if (err.code === 'NOT_AUTHORIZED') {
|
if (err.code === 'NOT_AUTHORIZED') {
|
||||||
self.notAuthorized = true;
|
self.notAuthorized = true;
|
||||||
go.walletHome();
|
go.walletHome();
|
||||||
|
|
@ -440,6 +441,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
self.showErrorPopup(msg);
|
self.showErrorPopup(msg);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
self.handleError = lodash.debounce(_handleError, 1000);
|
||||||
|
|
||||||
self.openWallet = function() {
|
self.openWallet = function() {
|
||||||
var fc = profileService.focusedClient;
|
var fc = profileService.focusedClient;
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
|
@ -920,9 +924,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
$log.warn('Showing err popup:' + msg);
|
$log.warn('Showing err popup:' + msg);
|
||||||
self.showAlert = {
|
self.showAlert = {
|
||||||
msg: msg,
|
msg: msg,
|
||||||
close: function(err) {
|
close: function() {
|
||||||
self.showAlert = null;
|
self.showAlert = null;
|
||||||
if (cb) return cb(err);
|
if (cb) return cb();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
|
@ -1344,10 +1348,6 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
$rootScope.$on('Local/ShowAlert', function(event, msg, cb) {
|
|
||||||
self.showErrorPopup(msg, cb);
|
|
||||||
});
|
|
||||||
|
|
||||||
$rootScope.$on('Local/NeedsPassword', function(event, isSetup, cb) {
|
$rootScope.$on('Local/NeedsPassword', function(event, isSetup, cb) {
|
||||||
self.askPassword = {
|
self.askPassword = {
|
||||||
isSetup: isSetup,
|
isSetup: isSetup,
|
||||||
|
|
|
||||||
|
|
@ -630,7 +630,7 @@ angular.module('copayApp.services')
|
||||||
name: config.aliasFor[c.walletId] || c.walletName,
|
name: config.aliasFor[c.walletId] || c.walletName,
|
||||||
id: c.walletId,
|
id: c.walletId,
|
||||||
network: c.network,
|
network: c.network,
|
||||||
color: config.colorFor[c.walletId] || '#2C3E50'
|
color: config.colorFor[c.walletId] || '#4A90E2'
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
ret = lodash.filter(ret, function(w) {
|
ret = lodash.filter(ret, function(w) {
|
||||||
|
|
|
||||||