From a7d0f27b800fbe6e6636e33e9217a24ec1037788 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 15 Sep 2020 08:20:19 -0500 Subject: [PATCH] Bolding no js message, fixing settheme and setLang on login event. --- src/server/index.tsx | 2 +- src/shared/components/navbar.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/index.tsx b/src/server/index.tsx index 1c04ed5..b7577ca 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -100,7 +100,7 @@ server.get('/*', async (req, res) => { diff --git a/src/shared/components/navbar.tsx b/src/shared/components/navbar.tsx index 1d3ef83..bf2b48b 100644 --- a/src/shared/components/navbar.tsx +++ b/src/shared/components/navbar.tsx @@ -419,6 +419,8 @@ export class Navbar extends Component { // This is only called on a successful login let data = res.data as GetSiteResponse; UserService.Instance.user = data.my_user; + setTheme(UserService.Instance.user.theme); + i18n.changeLanguage(getLanguage()); this.state.isLoggedIn = true; this.setState(this.state); } else if (res.op == UserOperation.CreateComment) { -- 2.44.1