Merge pull request #5639 from cmgustavo/bug/duplicated-home-integrations
Fix duplicated home integration items
This commit is contained in:
commit
a4fd5cf87b
1 changed files with 3 additions and 1 deletions
|
|
@ -1,9 +1,11 @@
|
|||
'use strict';
|
||||
angular.module('copayApp.services').factory('homeIntegrationsService', function(configService, $log) {
|
||||
angular.module('copayApp.services').factory('homeIntegrationsService', function(lodash, configService, $log) {
|
||||
var root = {};
|
||||
var services = [];
|
||||
|
||||
root.register = function(serviceInfo) {
|
||||
// Check if already exists
|
||||
if (lodash.find(services, { 'name': serviceInfo.name })) return;
|
||||
$log.info('Adding home Integrations entry:' + serviceInfo.name);
|
||||
services.push(serviceInfo);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue