Merge pull request #2192 from cmgustavo/ux/menu-layout

New sidebar on mobile
This commit is contained in:
Matias Alejo Garcia 2014-12-19 00:21:42 -03:00
commit 430240dcfd
8 changed files with 181 additions and 109 deletions

View file

@ -102,6 +102,10 @@ angular
.when('/profile', {
templateUrl: 'views/profile.html',
logged: true
})
.when('/add', {
templateUrl: 'views/add.html',
logged: true
});
if (config.developmentFeatures) {

View file

@ -20,27 +20,16 @@ angular.module('copayApp.services').factory('go', function($window, $rootScope,
var elem = angular.element(document.querySelector('#off-canvas-wrap'));
var leftbarActive = angular.element(document.getElementsByClassName('move-right')).length;
var rightbarActive = angular.element(document.getElementsByClassName('move-left')).length;
if (invert) {
if (rightbarActive) {
hideSidebars();
}
else {
if ($rootScope.iden && !$rootScope.hideNavigation) {
elem.addClass('move-right');
}
if ($rootScope.iden && !$rootScope.hideNavigation) {
elem.addClass('move-right');
}
}
else {
if (leftbarActive) {
hideSidebars();
}
else {
if ($rootScope.iden && $rootScope.iden.getWallets().length >1) {
elem.addClass('move-left');
}
}
}
};