diff --git a/src/app/config.js b/src/app/config.js
index 04ba60b80a..9426d7816a 100644
--- a/src/app/config.js
+++ b/src/app/config.js
@@ -121,10 +121,16 @@ angular
abstract: true
})
.state('backend.org.dashboard', {
- url: '^/organization/:id',
- templateUrl: 'app/organization/views/dashboard.html',
+ url: '^/organization/:orgId',
+ templateUrl: 'app/organization/views/organizationDashboard.html',
controller: 'organizationDashboardController',
- data: { pageTitle: 'Org Dash' }
+ data: { pageTitle: 'Organization Dashboard' }
+ })
+ .state('backend.org.people', {
+ url: '/organization/:orgId/people',
+ templateUrl: 'app/organization/views/organizationPeople.html',
+ controller: 'organizationPeopleController',
+ data: { pageTitle: 'Organization People' }
})
// Frontend
diff --git a/src/app/global/mainController.js b/src/app/global/mainController.js
index 31c8fa2fb2..6f5bdb8f9d 100644
--- a/src/app/global/mainController.js
+++ b/src/app/global/mainController.js
@@ -4,7 +4,6 @@ angular
.controller('mainController', function ($scope, $state, authService, appSettings, toastr) {
var vm = this;
vm.bodyClass = '';
- vm.userProfile = null;
vm.searchVaultText = null;
vm.version = appSettings.version;
@@ -27,7 +26,6 @@ angular
$scope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams) {
vm.searchVaultText = null;
- vm.userProfile = authService.getUserProfile();
if (toState.data.bodyClass) {
vm.bodyClass = toState.data.bodyClass;
diff --git a/src/app/global/sideNavController.js b/src/app/global/sideNavController.js
index 4d41c06c9a..575c5759ff 100644
--- a/src/app/global/sideNavController.js
+++ b/src/app/global/sideNavController.js
@@ -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;
+ });
+ }
});
diff --git a/src/app/organization/organizationPeopleController.js b/src/app/organization/organizationPeopleController.js
new file mode 100644
index 0000000000..528277b723
--- /dev/null
+++ b/src/app/organization/organizationPeopleController.js
@@ -0,0 +1,6 @@
+angular
+ .module('bit.organization')
+
+ .controller('organizationPeopleController', function ($scope) {
+
+ });
diff --git a/src/app/organization/views/dashboard.html b/src/app/organization/views/organizationDashboard.html
similarity index 100%
rename from src/app/organization/views/dashboard.html
rename to src/app/organization/views/organizationDashboard.html
diff --git a/src/app/organization/views/organizationPeople.html b/src/app/organization/views/organizationPeople.html
new file mode 100644
index 0000000000..dddacd19c3
--- /dev/null
+++ b/src/app/organization/views/organizationPeople.html
@@ -0,0 +1,16 @@
+
+ People
+ users for your organization
+
+Users
+