Merge pull request #3607 from bitpay/v1.5

Updating master from v1.5
This commit is contained in:
Gustavo Maximiliano Cortez 2015-12-07 15:55:01 -03:00
commit 751cefe1e9
8 changed files with 10 additions and 10 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -425,9 +425,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
};
// This handles errors from BWS/index with are nomally
// trigger from async events (like updates)
self.handleError = function(err) {
$log.warn('Client ERROR:', err);
// trigger from async events (like updates).
// Debounce function avoids multiple popups
var _handleError = function(err) {
$log.warn('Client ERROR: ', err);
if (err.code === 'NOT_AUTHORIZED') {
self.notAuthorized = true;
go.walletHome();
@ -440,6 +441,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.showErrorPopup(msg);
}
};
self.handleError = lodash.debounce(_handleError, 1000);
self.openWallet = function() {
var fc = profileService.focusedClient;
$timeout(function() {
@ -920,9 +924,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
$log.warn('Showing err popup:' + msg);
self.showAlert = {
msg: msg,
close: function(err) {
close: function() {
self.showAlert = null;
if (cb) return cb(err);
if (cb) return cb();
},
};
$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) {
self.askPassword = {
isSetup: isSetup,

View file

@ -630,7 +630,7 @@ angular.module('copayApp.services')
name: config.aliasFor[c.walletId] || c.walletName,
id: c.walletId,
network: c.network,
color: config.colorFor[c.walletId] || '#2C3E50'
color: config.colorFor[c.walletId] || '#4A90E2'
};
});
ret = lodash.filter(ret, function(w) {