hide menu in accept terms view
This commit is contained in:
parent
26f9581945
commit
c54a6c0875
4 changed files with 10 additions and 4 deletions
|
|
@ -19,7 +19,7 @@
|
|||
<ion-side-menus class="page" ng-controller="indexController as index">
|
||||
|
||||
<!-- Left menu -->
|
||||
<ion-side-menu side="left" expose-aside-when="large">
|
||||
<ion-side-menu side="left" expose-aside-when="large" ng-if="isDisclaimerAccepted">
|
||||
<div ng-include="'views/includes/sidebar.html'" ng-if="index.hasProfile"></div>
|
||||
</ion-side-menu>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('disclaimerController',
|
||||
function($scope, $timeout, $log, $ionicSideMenuDelegate, profileService, applicationService, gettextCatalog, uxLanguage, go, storageService, gettext, platformInfo, ongoingProcess) {
|
||||
function($scope, $rootScope, $timeout, $log, $ionicSideMenuDelegate, profileService, applicationService, gettextCatalog, uxLanguage, go, storageService, gettext, platformInfo, ongoingProcess) {
|
||||
var self = this;
|
||||
self.tries = 0;
|
||||
var isCordova = platformInfo.isCordova;
|
||||
|
|
@ -62,6 +62,7 @@ angular.module('copayApp.controllers').controller('disclaimerController',
|
|||
if (err) $log.error(err);
|
||||
else {
|
||||
$ionicSideMenuDelegate.canDragContent(true);
|
||||
$rootScope.$emit('disclaimerAccepted');
|
||||
go.walletHome();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1672,6 +1672,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
self.setTab(tab, reset);
|
||||
});
|
||||
|
||||
$rootScope.$on('disclaimerAccepted', function(event) {
|
||||
$scope.isDisclaimerAccepted = true;
|
||||
});
|
||||
|
||||
$rootScope.$on('Local/WindowResize', function() {
|
||||
self.physicalScreenWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -226,6 +226,7 @@ angular.module('copayApp.services')
|
|||
if (!val) {
|
||||
return cb(new Error('NONAGREEDDISCLAIMER: Non agreed disclaimer'));
|
||||
}
|
||||
$rootScope.$emit('disclaimerAccepted');
|
||||
return cb();
|
||||
});
|
||||
});
|
||||
|
|
@ -405,8 +406,8 @@ angular.module('copayApp.services')
|
|||
|
||||
// check if exist
|
||||
if (lodash.find(root.profile.credentials, {
|
||||
'walletId': walletData.walletId
|
||||
})) {
|
||||
'walletId': walletData.walletId
|
||||
})) {
|
||||
return cb(gettext('Cannot join the same wallet more that once'));
|
||||
}
|
||||
} catch (ex) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue