This commit is contained in:
Gabriel Bazán 2016-09-20 15:59:32 -03:00
commit 800765eeec
5 changed files with 9 additions and 7 deletions

View file

@ -50,6 +50,5 @@
</div> </div>
</div> </div>
</ion-content> </ion-content>
<accept class="accept-slide"></accept> <accept class="accept-slide" ng-if="!hideSlider"></accept>
</div>
</ion-view> </ion-view>

View file

@ -161,5 +161,5 @@
</button> </button>
</div> </div>
</ion-content> </ion-content>
<accept class="accept-slide" ng-disabled="loading || paymentExpired" ng-if="tx.pendingForUs && canSign && !hideSlider"></accept> <accept class="accept-slide" ng-if="tx.pendingForUs && canSign && !hideSlider && !loading && !paymentExpired"></accept>
</ion-modal-view> </ion-modal-view>

View file

@ -1,6 +1,6 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('confirmController', function($rootScope, $scope, $ionicSlideBoxDelegate, $filter, $timeout, $ionicScrollDelegate, $ionicNavBarDelegate, gettextCatalog, walletService, platformInfo, lodash, configService, rateService, $stateParams, $window, $state, $log, profileService, bitcore, $ionicPopup, gettext, txFormatService, ongoingProcess, $ionicModal, $ionicHistory, popupService) { angular.module('copayApp.controllers').controller('confirmController', function($rootScope, $scope, $filter, $timeout, $ionicScrollDelegate, $ionicNavBarDelegate, gettextCatalog, walletService, platformInfo, lodash, configService, rateService, $stateParams, $window, $state, $log, profileService, bitcore, $ionicPopup, gettext, txFormatService, ongoingProcess, $ionicModal, $ionicHistory, popupService) {
$ionicNavBarDelegate.title(gettextCatalog.getString('Confirm')); $ionicNavBarDelegate.title(gettextCatalog.getString('Confirm'));
var cachedTxp = {}; var cachedTxp = {};
var isChromeApp = platformInfo.isChromeApp; var isChromeApp = platformInfo.isChromeApp;
@ -9,7 +9,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
if ($stateParams.paypro) { if ($stateParams.paypro) {
return setFromPayPro($stateParams.paypro, function(err) { return setFromPayPro($stateParams.paypro, function(err) {
if (err && !isChromeApp) { if (err && !isChromeApp) {
showAlert(gettext('Could not fetch payment')); popupService.showAlert(gettext('Could not fetch payment'));
} }
}); });
} }

View file

@ -163,7 +163,7 @@ angular.module('copayApp.directives')
} }
} }
}) })
.directive('accept', function($log, profileService, walletService, lodash) { .directive('accept', function() {
return { return {
restrict: 'E', restrict: 'E',
templateUrl: 'views/includes/acceptSlide.html', templateUrl: 'views/includes/acceptSlide.html',

View file

@ -1,4 +1,7 @@
#view-confirm { #view-confirm {
ion-content{
bottom: 149px;
}
.send-gravatar { .send-gravatar {
left: 11px; left: 11px;
position: absolute; position: absolute;
@ -6,7 +9,7 @@
} }
.accept-slide { .accept-slide {
position: fixed; position: fixed;
bottom: 0; bottom: 49px;
width: 100%; width: 100%;
height: 100px; height: 100px;
background-color: #f5f5f5; background-color: #f5f5f5;