Removes hasClick
This commit is contained in:
parent
d27a77cb1f
commit
ae63ae145d
3 changed files with 2 additions and 19 deletions
|
|
@ -14,7 +14,6 @@ angular.module('copayApp.controllers').controller('txpDetailsController', functi
|
||||||
$scope.canSign = $scope.wallet.canSign() || $scope.wallet.isPrivKeyExternal();
|
$scope.canSign = $scope.wallet.canSign() || $scope.wallet.isPrivKeyExternal();
|
||||||
$scope.color = $scope.wallet.color;
|
$scope.color = $scope.wallet.color;
|
||||||
$scope.data = {};
|
$scope.data = {};
|
||||||
$scope.hasClick = platformInfo.hasClick;
|
|
||||||
$scope.displayAmount = getDisplayAmount($scope.tx.amountStr);
|
$scope.displayAmount = getDisplayAmount($scope.tx.amountStr);
|
||||||
$scope.displayUnit = getDisplayUnit($scope.tx.amountStr);
|
$scope.displayUnit = getDisplayUnit($scope.tx.amountStr);
|
||||||
initActionList();
|
initActionList();
|
||||||
|
|
|
||||||
|
|
@ -39,21 +39,5 @@ angular.module('copayApp.services').factory('platformInfo', function($window) {
|
||||||
ret.isChromeApp = $window.chrome && chrome.runtime && chrome.runtime.id && !ret.isNW;
|
ret.isChromeApp = $window.chrome && chrome.runtime && chrome.runtime.id && !ret.isNW;
|
||||||
ret.isDevel = !ret.isMobile && !ret.isChromeApp && !ret.isNW;
|
ret.isDevel = !ret.isMobile && !ret.isChromeApp && !ret.isNW;
|
||||||
|
|
||||||
ret.hasClick = false;
|
|
||||||
|
|
||||||
if ($window.sessionStorage.getItem('hasClick')) {
|
|
||||||
ret.hasClick = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
$window.addEventListener('mousedown', function() {
|
|
||||||
ret.hasClick = true;
|
|
||||||
$window.sessionStorage.setItem('hasClick', 'true');
|
|
||||||
});
|
|
||||||
|
|
||||||
$window.addEventListener('touchstart', function() {
|
|
||||||
ret.hasClick = false;
|
|
||||||
$window.sessionStorage.removeItem('hasClick');
|
|
||||||
});
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -163,13 +163,13 @@
|
||||||
|
|
||||||
<click-to-accept
|
<click-to-accept
|
||||||
ng-click="onConfirm(statusChangeHandler)"
|
ng-click="onConfirm(statusChangeHandler)"
|
||||||
ng-if="tx.pendingForUs && canSign && !paymentExpired && hasClick"
|
ng-if="tx.pendingForUs && canSign && !paymentExpired && !isCordova"
|
||||||
click-send-status="sendStatus"
|
click-send-status="sendStatus"
|
||||||
has-wallet-chosen="true">
|
has-wallet-chosen="true">
|
||||||
{{buttonText}}
|
{{buttonText}}
|
||||||
</click-to-accept>
|
</click-to-accept>
|
||||||
<slide-to-accept
|
<slide-to-accept
|
||||||
ng-if="tx.pendingForUs && canSign && !paymentExpired && !hasClick"
|
ng-if="tx.pendingForUs && canSign && !paymentExpired && isCordova"
|
||||||
slide-on-confirm="onConfirm()"
|
slide-on-confirm="onConfirm()"
|
||||||
slide-send-status="sendStatus"
|
slide-send-status="sendStatus"
|
||||||
has-wallet-chosen="true">
|
has-wallet-chosen="true">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue