Revert "Do not show the menu in disclaimer view"

This commit is contained in:
Gustavo Maximiliano Cortez 2016-07-11 10:04:36 -03:00 committed by GitHub
commit 941aa92dad
4 changed files with 6 additions and 18 deletions

View file

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('disclaimerController',
function($rootScope, $scope, $timeout, $log, $ionicSideMenuDelegate, profileService, applicationService, gettextCatalog, uxLanguage, go, storageService, gettext, platformInfo, ongoingProcess) {
function($scope, $timeout, $log, $ionicSideMenuDelegate, profileService, applicationService, gettextCatalog, uxLanguage, go, storageService, gettext, platformInfo, ongoingProcess) {
var self = this;
self.tries = 0;
var isCordova = platformInfo.isCordova;
@ -62,7 +62,6 @@ angular.module('copayApp.controllers').controller('disclaimerController',
if (err) $log.error(err);
else {
$ionicSideMenuDelegate.canDragContent(true);
$rootScope.$emit('disclaimerAccepted');
go.walletHome();
}
});

View file

@ -18,6 +18,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
ret.historyShowMoreLimit = 10;
ret.isSearching = false;
ret.prevState = 'walletHome';
ret.physicalScreenWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width);
ret.menu = [{
'title': gettext('Receive'),
@ -60,13 +61,6 @@ angular.module('copayApp.controllers').controller('indexController', function($r
});
}
$timeout(function() {
$scope.physicalScreenWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width) < 768;
profileService.isDisclaimerAccepted(function(val) {
$scope.isDisclaimerAccepted = val;
});
}, 1);
function strip(number) {
return (parseFloat(number.toPrecision(12)));
};
@ -1416,12 +1410,6 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.tab = 'walletHome';
});
$rootScope.$on('disclaimerAccepted', function(event) {
profileService.isDisclaimerAccepted(function(val) {
$scope.isDisclaimerAccepted = val;
});
});
$rootScope.$on('Local/ValidatingWalletEnded', function(ev, walletId, isOK) {
if (self.isInFocus(walletId)) {
@ -1685,7 +1673,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
});
$rootScope.$on('Local/WindowResize', function() {
$scope.physicalScreenWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width) < 768;
self.physicalScreenWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width);
});
$rootScope.$on('Local/NeedsConfirmation', function(event, txp, cb) {