buy.bitcoin.com service translatable

This commit is contained in:
Sebastiaan Pasma 2018-09-13 15:21:29 +02:00
commit 829c8f958e
No known key found for this signature in database
GPG key ID: 9A2B0C8B95A1D26F
5 changed files with 45 additions and 28 deletions

View file

@ -1207,7 +1207,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
});
})
.run(function($rootScope, $state, $location, $log, $timeout, startupService, ionicToast, fingerprintService, $ionicHistory, $ionicPlatform, $window, appConfigService, lodash, platformInfo, profileService, uxLanguage, gettextCatalog, openURLService, storageService, scannerService, configService, emailService, /* plugins START HERE => */ buydotbitcoindotcomService, pushNotificationsService, glideraService, amazonService, bitpayCardService, applicationService, mercadoLibreService, rateService) {
.run(function($rootScope, $state, $location, $log, $timeout, startupService, ionicToast, fingerprintService, $ionicHistory, $ionicPlatform, $window, appConfigService, lodash, platformInfo, profileService, uxLanguage, gettextCatalog, openURLService, storageService, scannerService, configService, emailService, /* plugins START HERE => */ buyBitcoinComService, pushNotificationsService, glideraService, amazonService, bitpayCardService, applicationService, mercadoLibreService, rateService) {
$ionicPlatform.ready(function() {

View file

@ -0,0 +1,25 @@
'use strict';
(function() {
angular
.module('bitcoincom.services')
.factory('buyBitcoinComService', buyBitcoinComService);
function buyBitcoinComService($http, $log, $window, $filter, platformInfo, storageService, buyAndSellService, gettextCatalog) {
var service = {};
service.register = function() {
buyAndSellService.register({
name: 'buydotbitcoindotcom',
logo: 'img/bitcoin-com-logo-grey.png',
location: gettextCatalog.getString('Buy Bitcoin With Credit Card'),
sref: 'tabs.buyandsell.bitcoindotcom'
});
};
service.register();
return service;
}
})();

View file

@ -1,24 +0,0 @@
'use strict';
angular.module('copayApp.services').factory('buydotbitcoindotcomService', function($http, $log, $window, $filter, platformInfo, storageService, buyAndSellService, lodash, configService, txFormatService) {
var root = {};
var credentials = {};
var isCordova = platformInfo.isCordova;
root.init = function(cb) {
};
var register = function() {
buyAndSellService.register({
name: 'buydotbitcoindotcom',
logo: 'img/bitcoin-com-logo-grey.png',
location: 'Buy Bitcoin With Credit Card',
sref: 'tabs.buyandsell.bitcoindotcom'
});
};
register();
return root;
});