From 449917ecca44da004e112b57eff91dcc5c74baae Mon Sep 17 00:00:00 2001 From: Benjamin Gerber Date: Wed, 30 Jan 2019 11:19:48 +0100 Subject: [PATCH] Set bg layer on login If no theme is set, the setDefaultBackground_ method was not called. Now it's called on each login action. GEO-1722 --- contribs/gmf/src/controllers/abstract.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contribs/gmf/src/controllers/abstract.js b/contribs/gmf/src/controllers/abstract.js index 09482b1ef551..528d635f76ce 100644 --- a/contribs/gmf/src/controllers/abstract.js +++ b/contribs/gmf/src/controllers/abstract.js @@ -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_(); };