org dashboard route
This commit is contained in:
parent
880be03211
commit
4fdf2a98bf
|
@ -1,7 +1,8 @@
|
||||||
angular
|
angular
|
||||||
.module('bit')
|
.module('bit')
|
||||||
|
|
||||||
.config(function ($stateProvider, $urlRouterProvider, $httpProvider, jwtInterceptorProvider, $uibTooltipProvider, toastrConfig) {
|
.config(function ($stateProvider, $urlRouterProvider, $httpProvider, jwtInterceptorProvider, $uibTooltipProvider,
|
||||||
|
toastrConfig) {
|
||||||
jwtInterceptorProvider.urlParam = 'access_token2';
|
jwtInterceptorProvider.urlParam = 'access_token2';
|
||||||
var refreshPromise;
|
var refreshPromise;
|
||||||
jwtInterceptorProvider.tokenGetter = /*@ngInject*/ function (config, appSettings, tokenService, apiService, jwtHelper, $q) {
|
jwtInterceptorProvider.tokenGetter = /*@ngInject*/ function (config, appSettings, tokenService, apiService, jwtHelper, $q) {
|
||||||
|
@ -120,7 +121,7 @@ angular
|
||||||
abstract: true
|
abstract: true
|
||||||
})
|
})
|
||||||
.state('backend.org.dashboard', {
|
.state('backend.org.dashboard', {
|
||||||
url: '^/organization',
|
url: '^/organization/:id',
|
||||||
templateUrl: 'app/organization/views/dashboard.html',
|
templateUrl: 'app/organization/views/dashboard.html',
|
||||||
controller: 'organizationDashboardController',
|
controller: 'organizationDashboardController',
|
||||||
data: { pageTitle: 'Org Dash' }
|
data: { pageTitle: 'Org Dash' }
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.viewOrganization = function (id) {
|
$scope.viewOrganization = function (id) {
|
||||||
$state.go('backend.org.dashboard');
|
$state.go('backend.org.dashboard', { id: id });
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.twoFactor = function () {
|
$scope.twoFactor = function () {
|
||||||
|
|
Loading…
Reference in New Issue