Skip to content

Commit

Permalink
Merge pull request #4565 from camptocamp/set_bg_layer_login
Browse files Browse the repository at this point in the history
Set bg layer on login
  • Loading branch information
ger-benjamin committed Jan 31, 2019
2 parents 6e4c935 + 449917e commit c6e42f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contribs/gmf/src/controllers/abstract.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,15 @@ gmf.AbstractController = function(config, $scope, $injector) {
}
});

// Reload theme and background layer when login status changes.
// Reload theme when login status changes.
const previousThemeName = this.gmfThemeManager.getThemeName();
this.gmfThemeManager.setThemeName('', true);
if (evt.type !== gmf.AuthenticationEventType.READY) {
this.updateCurrentTheme_(previousThemeName);
}
// Reload themes when login status changes.
// Reload themes and background layer when login status changes.
this.gmfThemes_.loadThemes(roleId);
this.setDefaultBackground_(null);
this.updateHasEditableLayers_();
};

Expand Down

0 comments on commit c6e42f4

Please sign in to comment.