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:
@@ -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;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user