From 61d41fb687580387976a1b15d6c1dd2d64f5aa54 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Wed, 19 Apr 2023 08:54:58 +0200 Subject: [PATCH] refs #5507 --- front/salix/routes.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/front/salix/routes.js b/front/salix/routes.js index f32c143ef..28e227d15 100644 --- a/front/salix/routes.js +++ b/front/salix/routes.js @@ -1,8 +1,8 @@ import ngModule from './module'; import getMainRoute from 'core/lib/get-main-route'; -config.$inject = ['$stateProvider', '$urlRouterProvider']; -function config($stateProvider, $urlRouterProvider) { +config.$inject = ['$stateProvider', '$urlRouterProvider', 'vnConfig']; +function config($stateProvider, $urlRouterProvider, vnConfig) { $urlRouterProvider .otherwise('/'); @@ -10,6 +10,7 @@ function config($stateProvider, $urlRouterProvider) { .state('layout', { abstract: true, template: '', + resolve: () => vnConfig.initialize() }) .state('outLayout', { abstract: true,