From: Dessalines Date: Tue, 30 Apr 2019 15:19:00 +0000 (-0700) Subject: Custom site name. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%22%7Burl%7D/%7Bthis.imageSrc%7D?a=commitdiff_plain;h=675cf6165488b0a68fe06696fda076c60ff96a76;p=lemmy.git Custom site name. - Fixes #113 --- diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index 88eed600..f4ad3771 100644 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@ -216,7 +216,7 @@ export class Main extends Component { landing() { return (
-
Welcome to +
Powered by LemmyBeta
@@ -226,7 +226,7 @@ export class Main extends Component {

Suggest new features or report bugs here.

Made with Rust, Actix, Inferno, Typescript.

- ) + ) } posts() { diff --git a/ui/src/components/navbar.tsx b/ui/src/components/navbar.tsx index ee19e5c5..6861461c 100644 --- a/ui/src/components/navbar.tsx +++ b/ui/src/components/navbar.tsx @@ -3,7 +3,7 @@ import { Link } from 'inferno-router'; import { Subscription } from "rxjs"; import { retryWhen, delay, take } from 'rxjs/operators'; import { WebSocketService, UserService } from '../services'; -import { UserOperation, GetRepliesForm, GetRepliesResponse, SortType } from '../interfaces'; +import { UserOperation, GetRepliesForm, GetRepliesResponse, SortType, GetSiteResponse } from '../interfaces'; import { msgOp } from '../utils'; import { version } from '../version'; @@ -12,6 +12,7 @@ interface NavbarState { expanded: boolean; expandUserDropdown: boolean; unreadCount: number; + siteName: string; } export class Navbar extends Component { @@ -21,7 +22,8 @@ export class Navbar extends Component { isLoggedIn: (UserService.Instance.user !== undefined), unreadCount: 0, expanded: false, - expandUserDropdown: false + expandUserDropdown: false, + siteName: undefined } constructor(props: any, context: any) { @@ -45,6 +47,8 @@ export class Navbar extends Component { (err) => console.error(err), () => console.log('complete') ); + + WebSocketService.Instance.getSite(); } render() { @@ -59,13 +63,12 @@ export class Navbar extends Component { } // TODO class active corresponding to current page - // TODO toggle css collapse navbar() { return (