From 152c4887d8e6b2c749130ec073015cf611c377f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 24 Jun 2021 11:59:29 +0200 Subject: [PATCH] Fix No theme after logout --- contribs/gmf/examples/themeselector.html | 2 +- contribs/gmf/src/controllers/AbstractAppController.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/contribs/gmf/examples/themeselector.html b/contribs/gmf/examples/themeselector.html index b8cd82cfc604..125bda421b09 100644 --- a/contribs/gmf/examples/themeselector.html +++ b/contribs/gmf/examples/themeselector.html @@ -10,7 +10,7 @@
-
The theme selected is {{ctrl.manager.getThemeName()}}
+
The theme selected is {{ctrl.manager.getThemeName()}}

This example shows how to use the gmf.themeselector directive from a c2c geoportal theme service.

diff --git a/contribs/gmf/src/controllers/AbstractAppController.js b/contribs/gmf/src/controllers/AbstractAppController.js index 616e51ed0468..fbd5a84eb6aa 100644 --- a/contribs/gmf/src/controllers/AbstractAppController.js +++ b/contribs/gmf/src/controllers/AbstractAppController.js @@ -309,7 +309,6 @@ export function AbstractAppController($scope, $injector, mobile) { // Reload theme when login status changes. const previousThemeName = this.gmfThemeManager.getThemeName(); - this.gmfThemeManager.setThemeName('', true); // Reload themes and background layer when login status changes. this.gmfThemes.loadThemes(roleId);