1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

organization pages and routing

This commit is contained in:
Kyle Spearrin
2017-03-03 21:53:02 -05:00
parent 4fdf2a98bf
commit 4d71a05d2a
13 changed files with 75 additions and 14 deletions

View File

@@ -1,6 +1,17 @@
angular
.module('bit.global')
.controller('sideNavController', function ($scope, $state) {
.controller('sideNavController', function ($scope, $state, authService, apiService) {
$scope.$state = $state;
$scope.params = $state.params;
if ($state.includes('backend.user')) {
$scope.userProfile = authService.getUserProfile();
}
else if ($state.includes('backend.org')) {
$scope.orgProfile = {};
apiService.organizations.get({ id: $state.params.orgId }, function (response) {
$scope.orgProfile.name = response.Name;
});
}
});