view logs in UX

This commit is contained in:
Matias Alejo Garcia 2015-04-25 12:37:04 -03:00
commit f47d6b0564
16 changed files with 188 additions and 47 deletions

View file

@ -534,11 +534,16 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.updateColor();
});
$rootScope.$on('Local/ConfigurationUpdated', function(event) {
$rootScope.$on('Local/UnitSettingUpdated', function(event) {
self.updateAll();
self.updateTxHistory();
});
$rootScope.$on('Local/BWSUpdated', function(event) {
profileService.applyConfig();
});
$rootScope.$on('Local/WalletCompleted', function(event) {
self.setFocusedWallet();
go.walletHome();

View file

@ -0,0 +1,4 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesAbout',
function() {});

View file

@ -49,7 +49,7 @@ angular.module('copayApp.controllers').controller('preferencesAltCurrencyControl
configService.set(opts, function(err) {
if (err) console.log(err);
$scope.$emit('Local/ConfigurationUpdated');
$scope.$emit('Local/UnitSettingUpdated');
});
};

View file

@ -23,9 +23,9 @@ angular.module('copayApp.controllers').controller('preferencesBwsUrlController',
configService.set(opts, function(err) {
if (err) console.log(err);
$scope.$emit('Local/BWSUpdated');
applicationService.restart(true);
go.walletHome();
$scope.$emit('Local/ConfigurationUpdated');
});
};

View file

@ -0,0 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesLogs',
function(historicLog) {
this.logs = historicLog.get();
console.log('[preferencesLogs.js.5:historicLog:]',this.logs); //TODO
});

View file

@ -52,7 +52,7 @@ angular.module('copayApp.controllers').controller('preferencesUnitController',
configService.set(opts, function(err) {
if (err) console.log(err);
$scope.$emit('Local/ConfigurationUpdated');
$scope.$emit('Local/UnitSettingUpdated');
});
};