diff options
author | Dessalines <tyhou13@gmx.com> | 2020-04-26 10:51:59 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-04-26 10:51:59 -0400 |
commit | 610cce4162c28d680819f2d45c804950313e3b96 (patch) | |
tree | 06c5263d0ea5ae9eb53f827ffa11529ccf3a4a66 | |
parent | 674e221335c38bea34e3a1f11bf857952038f4d6 (diff) |
Hide online counts for now. #664
-rw-r--r-- | ui/src/components/main.tsx | 2 | ||||
-rw-r--r-- | ui/src/components/sidebar.tsx | 13 |
2 files changed, 10 insertions, 5 deletions
diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index 366d3be8..829af222 100644 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@ -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, diff --git a/ui/src/components/sidebar.tsx b/ui/src/components/sidebar.tsx index d66266f6..fce31561 100644 --- a/ui/src/components/sidebar.tsx +++ b/ui/src/components/sidebar.tsx @@ -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> @@ -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, @@ -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')} |