mirror of https://github.com/BTCPrivate/copay.git
Fix tips
This commit is contained in:
parent
b7f0e403e5
commit
2230d5b666
|
@ -1,13 +1,13 @@
|
|||
<ion-view id="tab-receive">
|
||||
<ion-view id="tab-receive" ng-controller="tabReceiveController" ng-init="init()">
|
||||
<ion-nav-bar class="bar-royal">
|
||||
<ion-nav-title>{{'Receive' | translate}}</ion-nav-title>
|
||||
<ion-nav-buttons side="secondary">
|
||||
<button class="no-border">
|
||||
<button class="button button-clear" ng-click="checkTips(true)">
|
||||
<i class="ion-help-circled"></i>
|
||||
</button>
|
||||
</ion-nav-buttons>
|
||||
</ion-nav-bar>
|
||||
<ion-content ng-controller="tabReceiveController" ng-init="init()">
|
||||
<ion-content>
|
||||
<article id="address">
|
||||
<div class="row">
|
||||
<div class="m15t text-center col col-60 center-block" copy-to-clipboard="addr">
|
||||
|
|
|
@ -13,10 +13,10 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
|||
if (!$scope.isCordova) $scope.checkTips();
|
||||
}
|
||||
|
||||
$scope.checkTips = function() {
|
||||
$scope.checkTips = function(force) {
|
||||
storageService.getReceiveTipsAccepted(function(err, accepted) {
|
||||
if (err) $log.warn(err);
|
||||
if (accepted) return;
|
||||
if (accepted && !force) return;
|
||||
|
||||
$timeout(function() {
|
||||
$ionicModal.fromTemplateUrl('views/modals/receive-tips.html', {
|
||||
|
@ -25,7 +25,7 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
|||
$scope.receiveTipsModal = modal;
|
||||
$scope.receiveTipsModal.show();
|
||||
});
|
||||
}, 1000);
|
||||
}, force ? 1 : 1000);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue