Merge pull request #2192 from cmgustavo/ux/menu-layout
New sidebar on mobile
This commit is contained in:
commit
430240dcfd
8 changed files with 181 additions and 109 deletions
|
|
@ -102,6 +102,10 @@ angular
|
|||
.when('/profile', {
|
||||
templateUrl: 'views/profile.html',
|
||||
logged: true
|
||||
})
|
||||
.when('/add', {
|
||||
templateUrl: 'views/add.html',
|
||||
logged: true
|
||||
});
|
||||
|
||||
if (config.developmentFeatures) {
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue