From ed8b4014cee544512addfbd75627d2a1cfa0e764 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sat, 12 Dec 2020 22:19:01 +0100 Subject: Show count of instances and fix show/hide button --- .../app/+about/about-follows/about-follows.component.html | 14 +++++++------- .../app/+about/about-follows/about-follows.component.scss | 5 +++-- .../app/+about/about-follows/about-follows.component.ts | 4 ++-- 3 files changed, 12 insertions(+), 11 deletions(-) (limited to 'client/src/app/+about/about-follows') diff --git a/client/src/app/+about/about-follows/about-follows.component.html b/client/src/app/+about/about-follows/about-follows.component.html index 438e836e0..60cf3a28e 100644 --- a/client/src/app/+about/about-follows/about-follows.component.html +++ b/client/src/app/+about/about-follows/about-follows.component.html @@ -1,7 +1,7 @@

Follows

-

Followers instances

+

Followers instances ({{ followersPagination.totalItems }})

This instance does not have instances followers.
@@ -13,13 +13,13 @@ {{ follower }} - - Show full list - Show less + + +
-

Followings instances

+

Followings instances ({{ followingsPagination.totalItems }})

This instance is not following any other.
@@ -32,8 +32,8 @@ - Show full list - Show less + +
diff --git a/client/src/app/+about/about-follows/about-follows.component.scss b/client/src/app/+about/about-follows/about-follows.component.scss index f01484702..a393c9d92 100644 --- a/client/src/app/+about/about-follows/about-follows.component.scss +++ b/client/src/app/+about/about-follows/about-follows.component.scss @@ -19,6 +19,7 @@ a { .showMore { @include peertube-button-link; - padding: 0; - text-align: left; + @include grey-button; + + margin-top: 1%; } diff --git a/client/src/app/+about/about-follows/about-follows.component.ts b/client/src/app/+about/about-follows/about-follows.component.ts index bdee5cf78..b808c1ac9 100644 --- a/client/src/app/+about/about-follows/about-follows.component.ts +++ b/client/src/app/+about/about-follows/about-follows.component.ts @@ -22,13 +22,13 @@ export class AboutFollowsComponent implements OnInit { followersPagination: ComponentPagination = { currentPage: 1, itemsPerPage: 20, - totalItems: null + totalItems: 0 } followingsPagination: ComponentPagination = { currentPage: 1, itemsPerPage: 20, - totalItems: null + totalItems: 0 } sort: SortMeta = { -- cgit v1.2.3