mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-09 18:05:09 +00:00
Fix subscribe and block community buttons not showing up on first load
This commit is contained in:
parent
1c759cc83b
commit
e7c121aff9
|
@ -260,8 +260,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
|||
subscribe() {
|
||||
const community_view = this.props.community_view;
|
||||
return (
|
||||
<>
|
||||
{community_view.subscribed == "NotSubscribed" && (
|
||||
community_view.subscribed === "NotSubscribed" && (
|
||||
<button
|
||||
className="btn btn-secondary d-block mb-2 w-100"
|
||||
onClick={linkEvent(this, this.handleFollowCommunity)}
|
||||
|
@ -272,8 +271,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
|||
I18NextService.i18n.t("subscribe")
|
||||
)}
|
||||
</button>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -281,8 +279,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
|||
const { subscribed, blocked } = this.props.community_view;
|
||||
|
||||
return (
|
||||
<>
|
||||
{subscribed == "NotSubscribed" && (
|
||||
subscribed === "NotSubscribed" && (
|
||||
<button
|
||||
className="btn btn-danger d-block mb-2 w-100"
|
||||
onClick={linkEvent(this, this.handleBlockCommunity)}
|
||||
|
@ -291,8 +288,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
|||
blocked ? "unblock_community" : "block_community"
|
||||
)}
|
||||
</button>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue