Merge pull request #452 from gabrielbazan7/fix/pulltorefresh
Fix/pulltorefresh
This commit is contained in:
commit
79dbcf88d5
4 changed files with 10 additions and 4 deletions
|
|
@ -11,6 +11,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
$scope.name = $window.appConfig.nameCase;
|
$scope.name = $window.appConfig.nameCase;
|
||||||
$scope.homeTip = $stateParams.fromOnboarding;
|
$scope.homeTip = $stateParams.fromOnboarding;
|
||||||
$scope.isCordova = platformInfo.isCordova;
|
$scope.isCordova = platformInfo.isCordova;
|
||||||
|
$scope.isAndroid = platformInfo.isAndroid;
|
||||||
|
|
||||||
$scope.$on("$ionicView.afterEnter", function() {
|
$scope.$on("$ionicView.afterEnter", function() {
|
||||||
startupService.ready();
|
startupService.ready();
|
||||||
|
|
@ -221,7 +222,9 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.onRefresh = function() {
|
$scope.onRefresh = function() {
|
||||||
$scope.$broadcast('scroll.refreshComplete');
|
$timeout(function() {
|
||||||
|
$scope.$broadcast('scroll.refreshComplete');
|
||||||
|
}, 300);
|
||||||
updateAllWallets();
|
updateAllWallets();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
$scope.completeTxHistory = [];
|
$scope.completeTxHistory = [];
|
||||||
$scope.openTxpModal = txpModalService.open;
|
$scope.openTxpModal = txpModalService.open;
|
||||||
$scope.isCordova = platformInfo.isCordova;
|
$scope.isCordova = platformInfo.isCordova;
|
||||||
|
$scope.isAndroid = platformInfo.isAndroid;
|
||||||
|
|
||||||
$scope.openExternalLink = function(url, target) {
|
$scope.openExternalLink = function(url, target) {
|
||||||
externalLinkService.open(url, target);
|
externalLinkService.open(url, target);
|
||||||
|
|
@ -161,7 +162,9 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.onRefresh = function() {
|
$scope.onRefresh = function() {
|
||||||
$scope.$broadcast('scroll.refreshComplete');
|
$timeout(function() {
|
||||||
|
$scope.$broadcast('scroll.refreshComplete');
|
||||||
|
}, 300);
|
||||||
$scope.updateAll(true);
|
$scope.updateAll(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
<ion-content class="padding">
|
<ion-content class="padding">
|
||||||
<ion-refresher
|
<ion-refresher
|
||||||
ng-if="isCordova"
|
ng-if="isAndroid"
|
||||||
pulling-icon="ion-ios-refresh"
|
pulling-icon="ion-ios-refresh"
|
||||||
spinner="ios-small"
|
spinner="ios-small"
|
||||||
on-refresh="onRefresh()">
|
on-refresh="onRefresh()">
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<ion-content has-bouncing="false">
|
<ion-content has-bouncing="false">
|
||||||
<ion-refresher
|
<ion-refresher
|
||||||
ng-if="isCordova"
|
ng-if="isAndroid"
|
||||||
pulling-icon="ion-ios-refresh"
|
pulling-icon="ion-ios-refresh"
|
||||||
spinner="ios-small"
|
spinner="ios-small"
|
||||||
on-refresh="onRefresh()">
|
on-refresh="onRefresh()">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue