diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-19 20:26:25 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2020-05-01 16:41:02 +0200 |
commit | d384061366ae06294c0e222f0fb7ec4f0a172f39 (patch) | |
tree | ac97c69d7be200ab42d70ba50340b42673a4480e /client/src/app/+admin/follows/followers-list | |
parent | e0a929179a9dc76e035ca7fda2b61d5ff46afbc5 (diff) | |
download | PeerTube-d384061366ae06294c0e222f0fb7ec4f0a172f39.tar.gz PeerTube-d384061366ae06294c0e222f0fb7ec4f0a172f39.tar.zst PeerTube-d384061366ae06294c0e222f0fb7ec4f0a172f39.zip |
Empty states for tables
Diffstat (limited to 'client/src/app/+admin/follows/followers-list')
-rw-r--r-- | client/src/app/+admin/follows/followers-list/followers-list.component.html | 11 | ||||
-rw-r--r-- | client/src/app/+admin/follows/followers-list/followers-list.component.ts | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.html b/client/src/app/+admin/follows/followers-list/followers-list.component.html index 7455cdf2b..d4f2b8dcc 100644 --- a/client/src/app/+admin/follows/followers-list/followers-list.component.html +++ b/client/src/app/+admin/follows/followers-list/followers-list.component.html | |||
@@ -41,4 +41,15 @@ | |||
41 | </td> | 41 | </td> |
42 | </tr> | 42 | </tr> |
43 | </ng-template> | 43 | </ng-template> |
44 | |||
45 | <ng-template pTemplate="emptymessage"> | ||
46 | <tr> | ||
47 | <td colspan="6"> | ||
48 | <div class="empty-table-message"> | ||
49 | <ng-container *ngIf="search" i18n>No follower found matching current filters.</ng-container> | ||
50 | <ng-container *ngIf="!search" i18n>Your instance doesn't have any follower.</ng-container> | ||
51 | </div> | ||
52 | </td> | ||
53 | </tr> | ||
54 | </ng-template> | ||
44 | </p-table> | 55 | </p-table> |
diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.ts b/client/src/app/+admin/follows/followers-list/followers-list.component.ts index 585902827..81a91c1d1 100644 --- a/client/src/app/+admin/follows/followers-list/followers-list.component.ts +++ b/client/src/app/+admin/follows/followers-list/followers-list.component.ts | |||
@@ -9,7 +9,7 @@ import { I18n } from '@ngx-translate/i18n-polyfill' | |||
9 | @Component({ | 9 | @Component({ |
10 | selector: 'my-followers-list', | 10 | selector: 'my-followers-list', |
11 | templateUrl: './followers-list.component.html', | 11 | templateUrl: './followers-list.component.html', |
12 | styleUrls: [ './followers-list.component.scss' ] | 12 | styleUrls: [ '../follows.component.scss', './followers-list.component.scss' ] |
13 | }) | 13 | }) |
14 | export class FollowersListComponent extends RestTable implements OnInit { | 14 | export class FollowersListComponent extends RestTable implements OnInit { |
15 | followers: ActorFollow[] = [] | 15 | followers: ActorFollow[] = [] |