diff --git a/src/app/global/mainController.js b/src/app/global/mainController.js index fdf4928f..76bae441 100644 --- a/src/app/global/mainController.js +++ b/src/app/global/mainController.js @@ -40,14 +40,6 @@ angular } }); - $scope.searchVault = function () { - $state.go('backend.user.vault'); - }; - - $scope.searchOrganizationVault = function () { - $state.go('backend.org.vault', { orgId: $state.params.orgId }); - }; - $scope.addLogin = function () { $scope.$broadcast('vaultAddLogin'); }; @@ -60,6 +52,14 @@ angular $scope.$broadcast('organizationVaultAddLogin'); }; + $scope.addOrganizationCollection = function () { + $scope.$broadcast('organizationCollectionsAdd'); + }; + + $scope.inviteOrganizationUser = function () { + $scope.$broadcast('organizationPeopleInvite'); + }; + // Append dropdown menu somewhere else var bodyScrollbarWidth, appendedDropdownMenu, diff --git a/src/app/global/sideNavController.js b/src/app/global/sideNavController.js index 7383cfe8..f591ca2b 100644 --- a/src/app/global/sideNavController.js +++ b/src/app/global/sideNavController.js @@ -40,6 +40,14 @@ angular $state.go('backend.org.dashboard', { orgId: org.id }); }; + $scope.searchVault = function () { + $state.go('backend.user.vault'); + }; + + $scope.searchOrganizationVault = function () { + $state.go('backend.org.vault', { orgId: $state.params.orgId }); + }; + $scope.isOrgOwner = function (org) { return org && org.type === 0; }; diff --git a/src/app/organization/organizationCollectionsController.js b/src/app/organization/organizationCollectionsController.js index c761fab2..98457b17 100644 --- a/src/app/organization/organizationCollectionsController.js +++ b/src/app/organization/organizationCollectionsController.js @@ -9,6 +9,10 @@ loadList(); }); + $scope.$on('organizationCollectionsAdd', function (event, args) { + $scope.add(); + }); + $scope.add = function () { var modal = $uibModal.open({ animation: true, diff --git a/src/app/organization/organizationPeopleController.js b/src/app/organization/organizationPeopleController.js index 1f9f0b1f..4a5bea7e 100644 --- a/src/app/organization/organizationPeopleController.js +++ b/src/app/organization/organizationPeopleController.js @@ -55,6 +55,10 @@ }); }; + $scope.$on('organizationPeopleInvite', function (event, args) { + $scope.invite(); + }); + $scope.invite = function () { var modal = $uibModal.open({ animation: true, diff --git a/src/app/organization/views/organizationCollectionsAdd.html b/src/app/organization/views/organizationCollectionsAdd.html index bb483cad..cda513f1 100644 --- a/src/app/organization/views/organizationCollectionsAdd.html +++ b/src/app/organization/views/organizationCollectionsAdd.html @@ -1,6 +1,6 @@
No collections to manage.
+There are no collections yet for your organization.