aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/follows
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-04-19 20:26:25 +0200
committerRigel Kent <par@rigelk.eu>2020-05-01 16:41:02 +0200
commitd384061366ae06294c0e222f0fb7ec4f0a172f39 (patch)
treeac97c69d7be200ab42d70ba50340b42673a4480e /client/src/app/+admin/follows
parente0a929179a9dc76e035ca7fda2b61d5ff46afbc5 (diff)
downloadPeerTube-d384061366ae06294c0e222f0fb7ec4f0a172f39.tar.gz
PeerTube-d384061366ae06294c0e222f0fb7ec4f0a172f39.tar.zst
PeerTube-d384061366ae06294c0e222f0fb7ec4f0a172f39.zip
Empty states for tables
Diffstat (limited to 'client/src/app/+admin/follows')
-rw-r--r--client/src/app/+admin/follows/followers-list/followers-list.component.html11
-rw-r--r--client/src/app/+admin/follows/followers-list/followers-list.component.ts2
-rw-r--r--client/src/app/+admin/follows/following-list/following-list.component.html11
-rw-r--r--client/src/app/+admin/follows/following-list/following-list.component.ts2
-rw-r--r--client/src/app/+admin/follows/follows.component.scss6
-rw-r--r--client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html13
-rw-r--r--client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts2
7 files changed, 43 insertions, 4 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})
14export class FollowersListComponent extends RestTable implements OnInit { 14export class FollowersListComponent extends RestTable implements OnInit {
15 followers: ActorFollow[] = [] 15 followers: ActorFollow[] = []
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})
16export class FollowingListComponent extends RestTable implements OnInit { 16export class FollowingListComponent extends RestTable implements OnInit {
17 @ViewChild('batchDomainsModal') batchDomainsModal: BatchDomainsModalComponent 17 @ViewChild('batchDomainsModal') batchDomainsModal: BatchDomainsModalComponent
diff --git a/client/src/app/+admin/follows/follows.component.scss b/client/src/app/+admin/follows/follows.component.scss
index 766d7853b..32394f698 100644
--- a/client/src/app/+admin/follows/follows.component.scss
+++ b/client/src/app/+admin/follows/follows.component.scss
@@ -1,4 +1,10 @@
1@import "mixins";
2
1.form-sub-title { 3.form-sub-title {
2 flex-grow: 0; 4 flex-grow: 0;
3 margin-right: 30px; 5 margin-right: 30px;
4} 6}
7
8.empty-table-message {
9 @include empty-state;
10}
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html
index a8dcc69d2..f3b980970 100644
--- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html
+++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html
@@ -19,7 +19,7 @@
19 <tr> 19 <tr>
20 <th style="width: 40px;"></th> 20 <th style="width: 40px;"></th>
21 <th style="width: 160px;" i18n *ngIf="isDisplayingRemoteVideos()">Strategy</th> 21 <th style="width: 160px;" i18n *ngIf="isDisplayingRemoteVideos()">Strategy</th>
22 <th i18n pSortableColumn="name">Video name <p-sortIcon field="name"></p-sortIcon></th> 22 <th i18n pSortableColumn="name">Video name <p-sortIcon field="name"></p-sortIcon></th >
23 <th i18n>Video URL</th> 23 <th i18n>Video URL</th>
24 <th style="width: 100px;" i18n *ngIf="isDisplayingRemoteVideos()">Total size</th> 24 <th style="width: 100px;" i18n *ngIf="isDisplayingRemoteVideos()">Total size</th>
25 <th style="width: 80px;"></th> 25 <th style="width: 80px;"></th>
@@ -68,6 +68,17 @@
68 </td> 68 </td>
69 </tr> 69 </tr>
70 </ng-template> 70 </ng-template>
71
72 <ng-template pTemplate="emptymessage">
73 <tr>
74 <td colspan="6">
75 <div class="empty-table-message">
76 <ng-container *ngIf="isDisplayingRemoteVideos()" i18n>Your instance doesn't mirror any video.</ng-container>
77 <ng-container *ngIf="!isDisplayingRemoteVideos()" i18n>Your instance has no mirrored videos.</ng-container>
78 </div>
79 </td>
80 </tr>
81 </ng-template>
71</p-table> 82</p-table>
72 83
73 84
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts
index 2b62d30a3..f91800175 100644
--- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts
+++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts
@@ -13,7 +13,7 @@ import { RedundancyService } from '@app/shared/video/redundancy.service'
13@Component({ 13@Component({
14 selector: 'my-video-redundancies-list', 14 selector: 'my-video-redundancies-list',
15 templateUrl: './video-redundancies-list.component.html', 15 templateUrl: './video-redundancies-list.component.html',
16 styleUrls: [ './video-redundancies-list.component.scss' ] 16 styleUrls: [ '../follows.component.scss', './video-redundancies-list.component.scss' ]
17}) 17})
18export class VideoRedundanciesListComponent extends RestTable implements OnInit { 18export class VideoRedundanciesListComponent extends RestTable implements OnInit {
19 private static LOCAL_STORAGE_DISPLAY_TYPE = 'video-redundancies-list-display-type' 19 private static LOCAL_STORAGE_DISPLAY_TYPE = 'video-redundancies-list-display-type'