Skip to content

Commit

Permalink
Set bg layer on login
Browse files Browse the repository at this point in the history
If no theme is set, the setDefaultBackground_ method was not called.
Now it's called on each login action.

GEO-1722
  • Loading branch information
ger-benjamin committed Jan 30, 2019
1 parent 6e4c935 commit 449917e
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 449917e

Please sign in to comment.