Skip to content

Commit

Permalink
Fix No theme after logout
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 24, 2021
1 parent d110c2a commit 152c488
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 152c488

Please sign in to comment.