Sidebar support for small devices

This commit is contained in:
Gustavo Maximiliano Cortez 2014-10-28 12:37:15 -03:00
commit c8614b76c2
6 changed files with 84 additions and 21 deletions

View file

@ -48,6 +48,9 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
$rootScope.$watch('title', function(newTitle, oldTitle) {
$scope.title = newTitle;
});
$rootScope.$on('signout', function() {
$scope.signout();
});
}
});

View file

@ -35,6 +35,10 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
}
};
$scope.signout = function() {
$scope.$emit('signout');
};
$scope.isActive = function(item) {
return item.link && item.link == $location.path().split('/')[1];
};