reduce time to hide and adding close when click on popover
This commit is contained in:
parent
20c8a2c7ad
commit
b9f071ca93
2 changed files with 7 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<ion-popover-view>
|
||||
<div class="columns m20t">
|
||||
<div class="columns m20t" ng-click="close()">
|
||||
<label class="size-10 text-center m20b">
|
||||
<span translate>Copied to clipboard</span>
|
||||
</label>
|
||||
|
|
|
|||
|
|
@ -211,9 +211,13 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
$scope.popover.show($event);
|
||||
});
|
||||
|
||||
$scope.close = function() {
|
||||
$scope.popover.hide();
|
||||
}
|
||||
|
||||
$timeout(function() {
|
||||
$scope.popover.hide(); //close the popover after 3 seconds for some reason
|
||||
}, 2000);
|
||||
$scope.popover.hide(); //close the popover after 0.7 seconds
|
||||
}, 700);
|
||||
|
||||
$scope.$on('$destroy', function() {
|
||||
$scope.popover.remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue