From 4ca973056277879c4c5c6965dcc9afd08e771683 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Thu, 26 Nov 2015 08:34:57 +0100 Subject: [PATCH] fix issue #3514 - custom theme as default --- app/coffee/modules/auth.coffee | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/coffee/modules/auth.coffee b/app/coffee/modules/auth.coffee index 5bf83c00..d2d3639c 100644 --- a/app/coffee/modules/auth.coffee +++ b/app/coffee/modules/auth.coffee @@ -44,9 +44,9 @@ class AuthService extends taiga.Service @themeService) -> super() - @._currentTheme = @config.get("defaultTheme") || "taiga" # load on index.jade - userModel = @.getUser() + @._currentTheme = @._getUserTheme() + @.setUserdata(userModel) setUserdata: (userModel) -> @@ -57,7 +57,7 @@ class AuthService extends taiga.Service @.userData = null _getUserTheme: -> - return @rootscope.user?.theme || @config.get("defaultTheme") || "taiga" + return @rootscope.user?.theme || @config.get("defaultTheme") || "taiga" # load on index.jade _setTheme: -> newTheme = @._getUserTheme() @@ -84,6 +84,8 @@ class AuthService extends taiga.Service @._setTheme() return user + else + @._setTheme() return null