Merge remote-tracking branch 'origin/wallet/task/537' into wallet/sprint/20
This commit is contained in:
commit
8b19f599b6
6 changed files with 20 additions and 21 deletions
|
|
@ -29,6 +29,7 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory,
|
||||||
vm.finish = finish;
|
vm.finish = finish;
|
||||||
vm.goBack = goBack;
|
vm.goBack = goBack;
|
||||||
vm.loadMore = loadMore;
|
vm.loadMore = loadMore;
|
||||||
|
vm.next = next;
|
||||||
vm.openPopup = openPopup;
|
vm.openPopup = openPopup;
|
||||||
vm.pushDigit = pushDigit;
|
vm.pushDigit = pushDigit;
|
||||||
vm.removeDigit = removeDigit;
|
vm.removeDigit = removeDigit;
|
||||||
|
|
@ -478,7 +479,7 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory,
|
||||||
|
|
||||||
// Currency
|
// Currency
|
||||||
|
|
||||||
var next = 10;
|
var nextCurrencies = 10;
|
||||||
var completeAlternativeList = [];
|
var completeAlternativeList = [];
|
||||||
|
|
||||||
var popularCurrencyList = [
|
var popularCurrencyList = [
|
||||||
|
|
@ -537,12 +538,17 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory,
|
||||||
|
|
||||||
function loadMore() {
|
function loadMore() {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
vm.altCurrencyList = completeAlternativeList.slice(0, next);
|
vm.altCurrencyList = completeAlternativeList.slice(0, nextCurrencies);
|
||||||
next += 10;
|
nextCurrencies += 10;
|
||||||
vm.listComplete = vm.altCurrencyList.length >= completeAlternativeList.length;
|
vm.listComplete = vm.altCurrencyList.length >= completeAlternativeList.length;
|
||||||
$scope.$broadcast('scroll.infiniteScrollComplete');
|
$scope.$broadcast('scroll.infiniteScrollComplete');
|
||||||
}, 100);
|
}, 100);
|
||||||
};
|
}
|
||||||
|
|
||||||
|
function next() {
|
||||||
|
useSendMax = false;
|
||||||
|
vm.finish();
|
||||||
|
}
|
||||||
|
|
||||||
function findCurrency(search) {
|
function findCurrency(search) {
|
||||||
if (!search) initCurrencies();
|
if (!search) initCurrencies();
|
||||||
|
|
|
||||||
|
|
@ -223,7 +223,7 @@ function reviewController(addressbookService, bitcoinCashJsService, bitcore, bit
|
||||||
// Grab stateParams
|
// Grab stateParams
|
||||||
tx = {
|
tx = {
|
||||||
amount: parseInt(sendFlowData.amount),
|
amount: parseInt(sendFlowData.amount),
|
||||||
sendMax: sendFlowData.sendMax === 'true' ? true : false,
|
sendMax: sendFlowData.sendMax,
|
||||||
fromWalletId: sendFlowData.fromWalletId,
|
fromWalletId: sendFlowData.fromWalletId,
|
||||||
toAddress: sendFlowData.toAddress,
|
toAddress: sendFlowData.toAddress,
|
||||||
paypro: txPayproData,
|
paypro: txPayproData,
|
||||||
|
|
|
||||||
|
|
@ -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, communityService, 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();
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@
|
||||||
<button
|
<button
|
||||||
class="button button-full button-primary no-margin"
|
class="button button-full button-primary no-margin"
|
||||||
ng-disabled="!vm.allowSend"
|
ng-disabled="!vm.allowSend"
|
||||||
ng-click="vm.finish()"
|
ng-click="vm.next()"
|
||||||
style="position: absolute; bottom: 0;"
|
style="position: absolute; bottom: 0;"
|
||||||
translate>
|
translate>
|
||||||
Next
|
Next
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue