shapeshift moved to default services and communities fix

This commit is contained in:
Sebastiaan Pasma 2018-08-09 10:15:55 +02:00
commit 420305cf01
No known key found for this signature in database
GPG key ID: 9A2B0C8B95A1D26F
3 changed files with 8 additions and 15 deletions

View file

@ -1,7 +1,7 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('tabHomeController', angular.module('copayApp.controllers').controller('tabHomeController',
function($rootScope, sendFlowService, $timeout, $scope, $state, $stateParams, $ionicScrollDelegate, $window, gettextCatalog, lodash, popupService, ongoingProcess, bannerService, externalLinkService, latestReleaseService, profileService, walletService, configService, $log, platformInfo, storageService, txpModalService, appConfigService, startupService, addressbookService, bwcError, nextStepsService, buyAndSellService, homeIntegrationsService, bitpayCardService, pushNotificationsService, timeService, $ionicNavBarDelegate) { function($rootScope, $timeout, $scope, $state, $stateParams, $ionicModal, $ionicScrollDelegate, $window, gettextCatalog, lodash, popupService, ongoingProcess, bannerService, externalLinkService, latestReleaseService, profileService, walletService, configService, $log, platformInfo, sendFlowService, storageService, txpModalService, appConfigService, startupService, addressbookService, bwcError, nextStepsService, buyAndSellService, homeIntegrationsService, bitpayCardService, pushNotificationsService, timeService, bitcoincomService, pricechartService, firebaseEventsService, servicesService, shapeshiftService, $ionicNavBarDelegate, signVerifyMessageService) {
var wallet; var wallet;
var listeners = []; var listeners = [];
var notifications = []; var notifications = [];
@ -58,7 +58,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
}); });
} }
}; };
function onEnter(event, data) { function onEnter(event, data) {
$ionicNavBarDelegate.showBar(true); $ionicNavBarDelegate.showBar(true);
updateAllWallets(); updateAllWallets();

View file

@ -1,7 +1,12 @@
'use strict' 'use strict'
angular.module('copayApp.services').factory('servicesService', function(configService, $log, lodash) { angular.module('copayApp.services').factory('servicesService', function(configService, $log, lodash) {
var root = {}; var root = {};
var services = []; var services = [{
name: 'shapeshift',
title: 'Shapeshift',
icon: 'icon-shapeshift',
sref: 'tabs.shapeshift',
}];
root.register = function(serviceInfo) { root.register = function(serviceInfo) {
$log.info('Adding Services entry:' + serviceInfo.name); $log.info('Adding Services entry:' + serviceInfo.name);

View file

@ -137,17 +137,5 @@ angular.module('copayApp.services').factory('shapeshiftService', function ($http
}); });
}; };
var servicesItem = {
name: 'shapeshift',
title: 'Shapeshift',
icon: 'icon-shapeshift',
sref: 'tabs.shapeshift',
};
var register = function() {
servicesService.register(servicesItem);
};
register();
return root; return root;
}); });