1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-31 08:20:37 +01:00

org dashboard route

This commit is contained in:
Kyle Spearrin 2017-03-03 19:14:14 -05:00
parent 880be03211
commit 4fdf2a98bf
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,8 @@
angular
.module('bit')
.config(function ($stateProvider, $urlRouterProvider, $httpProvider, jwtInterceptorProvider, $uibTooltipProvider, toastrConfig) {
.config(function ($stateProvider, $urlRouterProvider, $httpProvider, jwtInterceptorProvider, $uibTooltipProvider,
toastrConfig) {
jwtInterceptorProvider.urlParam = 'access_token2';
var refreshPromise;
jwtInterceptorProvider.tokenGetter = /*@ngInject*/ function (config, appSettings, tokenService, apiService, jwtHelper, $q) {
@ -120,7 +121,7 @@ angular
abstract: true
})
.state('backend.org.dashboard', {
url: '^/organization',
url: '^/organization/:id',
templateUrl: 'app/organization/views/dashboard.html',
controller: 'organizationDashboardController',
data: { pageTitle: 'Org Dash' }

View File

@ -71,7 +71,7 @@
};
$scope.viewOrganization = function (id) {
$state.go('backend.org.dashboard');
$state.go('backend.org.dashboard', { id: id });
};
$scope.twoFactor = function () {