Skip to content

Commit

Permalink
Hide online counts for now. #664
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Apr 26, 2020
1 parent b104a7c commit 1099bd8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions ui/src/components/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,11 @@ export class Main extends Component<any, MainState> {
</ul>
)}
<ul class="my-2 list-inline">
{/*
<li className="list-inline-item badge badge-secondary">
{i18n.t('number_online', { count: this.state.siteRes.online })}
</li>
*/}
<li className="list-inline-item badge badge-secondary">
{i18n.t('number_of_users', {
count: this.state.siteRes.site.number_of_users,
Expand Down
13 changes: 8 additions & 5 deletions ui/src/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
}
>
<svg
class={`icon icon-inline ${community.deleted &&
'text-danger'}`}
class={`icon icon-inline ${
community.deleted && 'text-danger'
}`}
>
<use xlinkHref="#icon-trash"></use>
</svg>
Expand Down Expand Up @@ -169,9 +170,11 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
</form>
)}
<ul class="my-1 list-inline">
{/*
<li className="list-inline-item badge badge-secondary">
{i18n.t('number_online', { count: this.props.online })}
</li>
*/}
<li className="list-inline-item badge badge-secondary">
{i18n.t('number_of_subscribers', {
count: community.number_of_subscribers,
Expand Down Expand Up @@ -215,9 +218,9 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
))}
</ul>
<Link
class={`btn btn-sm btn-secondary btn-block mb-3 ${(community.deleted ||
community.removed) &&
'no-click'}`}
class={`btn btn-sm btn-secondary btn-block mb-3 ${
(community.deleted || community.removed) && 'no-click'
}`}
to={`/create_post?community=${community.name}`}
>
{i18n.t('create_a_post')}
Expand Down

0 comments on commit 1099bd8

Please sign in to comment.