Skip to content

Commit

Permalink
Merge pull request #7262 from camptocamp/GSGMF-1619-no-theme-logout
Browse files Browse the repository at this point in the history
Fix no theme after logout
  • Loading branch information
sbrunner authored Jun 25, 2021
2 parents 68b7cb5 + 152c488 commit 8d2022f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion contribs/gmf/examples/themeselector.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<body ng-controller="MainController as ctrl">
<div class="container">
<gmf-themeselector gmf-themeselector-filter="::ctrl.filter"></gmf-themeselector>
<div> The theme selected is {{ctrl.manager.getThemeName()}}</div>
<div>The theme selected is {{ctrl.manager.getThemeName()}}</div>

</div>
<p id="desc">This example shows how to use the <code>gmf.themeselector</code> directive from a c2c geoportal theme service.</p>
Expand Down
1 change: 0 additions & 1 deletion contribs/gmf/src/controllers/AbstractAppController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8d2022f

Please sign in to comment.