Glidera: Fix padding and close modal with the back button or swipe-right
This commit is contained in:
parent
c4ce8b8b8d
commit
7b3b108026
3 changed files with 12 additions and 5 deletions
|
|
@ -6,7 +6,7 @@
|
|||
</div>
|
||||
|
||||
|
||||
<div class="content glidera" ng-controller="glideraController as glidera">
|
||||
<div class="content glidera p20b" ng-controller="glideraController as glidera">
|
||||
|
||||
<div class="onGoingProcess" ng-show="glidera.loading || index.glideraLoading">
|
||||
<div class="onGoingProcess-content" ng-style="{'background-color':index.backgroundColor}">
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="no-bullet size-14 m0">
|
||||
<ul class="no-bullet size-14">
|
||||
|
||||
<li class="line-b p10 oh">
|
||||
<span class="text-gray">Status</span>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('glideraController',
|
||||
function($scope, $timeout, $modal, profileService, configService, storageService, glideraService, isChromeApp, animationService) {
|
||||
function($rootScope, $scope, $timeout, $modal, profileService, configService, storageService, glideraService, isChromeApp, animationService, lodash) {
|
||||
|
||||
window.ignoreMobilePause = true;
|
||||
|
||||
|
|
@ -37,6 +37,7 @@ angular.module('copayApp.controllers').controller('glideraController',
|
|||
};
|
||||
|
||||
this.openTxModal = function(token, tx) {
|
||||
$rootScope.modalOpened = true;
|
||||
var self = this;
|
||||
var config = configService.getSync().wallet.settings;
|
||||
var fc = profileService.focusedClient;
|
||||
|
|
@ -50,9 +51,9 @@ angular.module('copayApp.controllers').controller('glideraController',
|
|||
$scope.tx = tx;
|
||||
});
|
||||
|
||||
$scope.cancel = function() {
|
||||
$scope.cancel = lodash.debounce(function() {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
}, 0, 1000);
|
||||
|
||||
};
|
||||
|
||||
|
|
@ -62,7 +63,13 @@ angular.module('copayApp.controllers').controller('glideraController',
|
|||
controller: ModalInstanceCtrl,
|
||||
});
|
||||
|
||||
var disableCloseModal = $rootScope.$on('closeModal', function() {
|
||||
modalInstance.dismiss('cancel');
|
||||
});
|
||||
|
||||
modalInstance.result.finally(function() {
|
||||
$rootScope.modalOpened = false;
|
||||
disableCloseModal();
|
||||
var m = angular.element(document.getElementsByClassName('reveal-modal'));
|
||||
m.addClass(animationService.modalAnimated.slideOutRight);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue