]> Untitled Git - lemmy.git/commitdiff
Hide online counts for now. #664
authorDessalines <tyhou13@gmx.com>
Sun, 26 Apr 2020 14:51:59 +0000 (10:51 -0400)
committerDessalines <tyhou13@gmx.com>
Sun, 26 Apr 2020 14:51:59 +0000 (10:51 -0400)
ui/src/components/main.tsx
ui/src/components/sidebar.tsx

index 366d3be8f1e408f962e40fcd0332fcee727d181f..829af2228081af5e4503a0ede2a20e8274faa6a7 100644 (file)
@@ -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,
index d66266f6cab0e0e5a0769d8aa381d0c3ba6cb618..fce315610006627d63328f297cabca7049dd79d5 100644 (file)
@@ -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')}