buy.bitcoin.com service translatable
This commit is contained in:
parent
5b581d3be2
commit
829c8f958e
5 changed files with 45 additions and 28 deletions
|
|
@ -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() {
|
||||
|
||||
|
|
|
|||
25
src/js/services/buy-bitcoin-com.service.js
Normal file
25
src/js/services/buy-bitcoin-com.service.js
Normal 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;
|
||||
}
|
||||
})();
|
||||
|
|
@ -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;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue