fix refresh in home / settings
This commit is contained in:
parent
d85da2cc45
commit
5357ba7fcd
14 changed files with 150 additions and 96 deletions
23
src/js/services/homeIntegrationsService.js
Normal file
23
src/js/services/homeIntegrationsService.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
'use strict';
|
||||
angular.module('copayApp.services').factory('homeIntegrationsService', function(configService, $log) {
|
||||
var root = {};
|
||||
var services = [];
|
||||
|
||||
root.register = function(serviceInfo) {
|
||||
$log.info('Adding home Integrations entry:' + serviceInfo.name);
|
||||
services.push(serviceInfo);
|
||||
};
|
||||
|
||||
root.unregister = function(serviceName) {
|
||||
services = lodash.filter(services, function(x) {
|
||||
return x.name != serviceName
|
||||
});
|
||||
};
|
||||
|
||||
root.get = function() {
|
||||
return services;
|
||||
};
|
||||
|
||||
return root;
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue