diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx index 55be7621..1e5376f2 100644 --- a/ui/src/components/comment-node.tsx +++ b/ui/src/components/comment-node.tsx @@ -46,7 +46,7 @@ export class CommentNode extends Component {
); } - handleLogoutClick() { + expandUserDropdown(i: Navbar) { + i.state.expandUserDropdown = !i.state.expandUserDropdown; + i.setState(i.state); + } + + handleLogoutClick(i: Navbar) { + i.state.expandUserDropdown = false; UserService.Instance.logout(); } + handleOverviewClick(i: Navbar) { + i.state.expandUserDropdown = false; + i.setState(i.state); + let userPage = `/user/${UserService.Instance.user.id}`; + i.context.router.history.push(userPage); + } + expandNavbar(i: Navbar) { i.state.expanded = !i.state.expanded; i.setState(i.state); } } + diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index f3145eff..d52dc937 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -79,7 +79,7 @@ export class PostListing extends Component { {this.myPost && diff --git a/ui/src/components/sidebar.tsx b/ui/src/components/sidebar.tsx index ffc44562..6fd2bb5c 100644 --- a/ui/src/components/sidebar.tsx +++ b/ui/src/components/sidebar.tsx @@ -42,7 +42,8 @@ export class Sidebar extends Component { let community = this.props.community; return (
-

{community.title}

+

{community.title}

+ /f/{community.name} {this.amMod &&
  • diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx index 4754111e..5dd3ac6a 100644 --- a/ui/src/components/user.tsx +++ b/ui/src/components/user.tsx @@ -77,7 +77,7 @@ export class User extends Component { return (
    -
    +

    /u/{this.state.user.name}

    {this.selects()} {this.state.view == View.Overview && @@ -90,7 +90,7 @@ export class User extends Component { this.posts() }
    -
    +
    {this.userInfo()} {this.moderates()} {this.follows()}