pull to refresh
This commit is contained in:
parent
f1897f4d1b
commit
0d92a2af9b
2 changed files with 12 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
$scope.txps = [];
|
$scope.txps = [];
|
||||||
$scope.completeTxHistory = [];
|
$scope.completeTxHistory = [];
|
||||||
$scope.openTxpModal = txpModalService.open;
|
$scope.openTxpModal = txpModalService.open;
|
||||||
|
$scope.isCordova = platformInfo.isCordova;
|
||||||
|
|
||||||
$scope.openExternalLink = function(url, target) {
|
$scope.openExternalLink = function(url, target) {
|
||||||
externalLinkService.open(url, target);
|
externalLinkService.open(url, target);
|
||||||
|
|
@ -159,6 +160,11 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
}, 100);
|
}, 100);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.onRefresh = function() {
|
||||||
|
$scope.$broadcast('scroll.refreshComplete');
|
||||||
|
$scope.updateAll(true);
|
||||||
|
};
|
||||||
|
|
||||||
$scope.updateAll = function(force, cb) {
|
$scope.updateAll = function(force, cb) {
|
||||||
updateStatus(force);
|
updateStatus(force);
|
||||||
updateTxHistory(cb);
|
updateTxHistory(cb);
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,12 @@
|
||||||
</ion-nav-bar>
|
</ion-nav-bar>
|
||||||
|
|
||||||
<ion-content delegate-handle="my-handle">
|
<ion-content delegate-handle="my-handle">
|
||||||
|
<ion-refresher
|
||||||
|
ng-if="isCordova"
|
||||||
|
pulling-icon="ion-ios-refresh"
|
||||||
|
spinner="ios-small"
|
||||||
|
on-refresh="onRefresh()">
|
||||||
|
</ion-refresher>
|
||||||
<div class="oh pr" ng-show="wallet && wallet.isComplete()">
|
<div class="oh pr" ng-show="wallet && wallet.isComplete()">
|
||||||
<div ng-style="{'background-color':wallet.color}" class="amount">
|
<div ng-style="{'background-color':wallet.color}" class="amount">
|
||||||
<div ng-if="!notAuthorized && !updatingStatus">
|
<div ng-if="!notAuthorized && !updatingStatus">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue