remove tabs from fee policy view when back view is confirm
This commit is contained in:
parent
8122a84471
commit
8df8ba6ee0
1 changed files with 11 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('preferencesFeeController', function($scope, $timeout, $ionicHistory, lodash, gettextCatalog, configService, feeService, ongoingProcess, popupService) {
|
angular.module('copayApp.controllers').controller('preferencesFeeController', function($scope, $rootScope, $timeout, $ionicHistory, lodash, gettextCatalog, configService, feeService, ongoingProcess, popupService) {
|
||||||
|
|
||||||
$scope.save = function(newFee) {
|
$scope.save = function(newFee) {
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|
@ -21,7 +21,16 @@ angular.module('copayApp.controllers').controller('preferencesFeeController', fu
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function hideTabs() {
|
||||||
|
$timeout(function() {
|
||||||
|
$rootScope.hideTabs = 'tabs-item-hide';
|
||||||
|
$rootScope.$apply();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
|
|
||||||
|
if ($ionicHistory.backView() && ($ionicHistory.backView().stateName == 'tabs.send.confirm')) hideTabs();
|
||||||
$scope.feeOpts = feeService.feeOpts;
|
$scope.feeOpts = feeService.feeOpts;
|
||||||
$scope.currentFeeLevel = feeService.getCurrentFeeLevel();
|
$scope.currentFeeLevel = feeService.getCurrentFeeLevel();
|
||||||
$scope.loadingFee = true;
|
$scope.loadingFee = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue