From: Dessalines Date: Tue, 15 Sep 2020 13:20:19 +0000 (-0500) Subject: Bolding no js message, fixing settheme and setLang on login event. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%7BcanonicalUrl%7D?a=commitdiff_plain;h=a7d0f27b800fbe6e6636e33e9217a24ec1037788;p=lemmy-ui.git Bolding no js message, fixing settheme and setLang on login event. --- 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) {