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/following-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/following-list')
-rw-r--r-- | client/src/app/+admin/follows/following-list/following-list.component.html | 11 | ||||
-rw-r--r-- | client/src/app/+admin/follows/following-list/following-list.component.ts | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/client/src/app/+admin/follows/following-list/following-list.component.html b/client/src/app/+admin/follows/following-list/following-list.component.html index f3bb7216b..e4189d334 100644 --- a/client/src/app/+admin/follows/following-list/following-list.component.html +++ b/client/src/app/+admin/follows/following-list/following-list.component.html | |||
@@ -45,6 +45,17 @@ | |||
45 | </td> | 45 | </td> |
46 | </tr> | 46 | </tr> |
47 | </ng-template> | 47 | </ng-template> |
48 | |||
49 | <ng-template pTemplate="emptymessage"> | ||
50 | <tr> | ||
51 | <td colspan="6"> | ||
52 | <div class="empty-table-message"> | ||
53 | <ng-container *ngIf="search" i18n>No host found matching current filters.</ng-container> | ||
54 | <ng-container *ngIf="!search" i18n>Your instance is not follwing any host.</ng-container> | ||
55 | </div> | ||
56 | </td> | ||
57 | </tr> | ||
58 | </ng-template> | ||
48 | </p-table> | 59 | </p-table> |
49 | 60 | ||
50 | <my-batch-domains-modal #batchDomainsModal i18n-action action="Follow domains" (domains)="addFollowing($event)"></my-batch-domains-modal> | 61 | <my-batch-domains-modal #batchDomainsModal i18n-action action="Follow domains" (domains)="addFollowing($event)"></my-batch-domains-modal> |
diff --git a/client/src/app/+admin/follows/following-list/following-list.component.ts b/client/src/app/+admin/follows/following-list/following-list.component.ts index 477a6c0d7..a4dd07302 100644 --- a/client/src/app/+admin/follows/following-list/following-list.component.ts +++ b/client/src/app/+admin/follows/following-list/following-list.component.ts | |||
@@ -11,7 +11,7 @@ import { BatchDomainsModalComponent } from '@app/+admin/config/shared/batch-doma | |||
11 | @Component({ | 11 | @Component({ |
12 | selector: 'my-followers-list', | 12 | selector: 'my-followers-list', |
13 | templateUrl: './following-list.component.html', | 13 | templateUrl: './following-list.component.html', |
14 | styleUrls: [ './following-list.component.scss' ] | 14 | styleUrls: [ '../follows.component.scss', './following-list.component.scss' ] |
15 | }) | 15 | }) |
16 | export class FollowingListComponent extends RestTable implements OnInit { | 16 | export class FollowingListComponent extends RestTable implements OnInit { |
17 | @ViewChild('batchDomainsModal') batchDomainsModal: BatchDomainsModalComponent | 17 | @ViewChild('batchDomainsModal') batchDomainsModal: BatchDomainsModalComponent |