aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-25 11:35:09 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-25 11:35:09 +0200
commit42374cf5d40b8266cf7b0ee68732c436c1d45a06 (patch)
treef35db787e467826d07ea9e1a4139d0a5c79176b1 /client/src/app/+admin
parentf627b712c95cb7a867499534424f63d409f21ef7 (diff)
downloadPeerTube-42374cf5d40b8266cf7b0ee68732c436c1d45a06.tar.gz
PeerTube-42374cf5d40b8266cf7b0ee68732c436c1d45a06.tar.zst
PeerTube-42374cf5d40b8266cf7b0ee68732c436c1d45a06.zip
Fix client admin
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r--client/src/app/+admin/requests/request-stats/request-stats.component.html57
-rw-r--r--client/src/app/+admin/users/user-list/user-list.component.ts4
2 files changed, 32 insertions, 29 deletions
diff --git a/client/src/app/+admin/requests/request-stats/request-stats.component.html b/client/src/app/+admin/requests/request-stats/request-stats.component.html
index 29e7f7052..4508ab4c2 100644
--- a/client/src/app/+admin/requests/request-stats/request-stats.component.html
+++ b/client/src/app/+admin/requests/request-stats/request-stats.component.html
@@ -3,41 +3,44 @@
3 3
4 <h3>Requests stats</h3> 4 <h3>Requests stats</h3>
5 5
6 <div *ngFor="let requestSchedulerName of statsTitles | keys" class="col-lg-4 col-md-12"> 6 <ng-template [ngIf]="stats">
7 <div class="panel panel-default" *ngIf="stats[requestSchedulerName] !== null"> 7 <div *ngFor="let requestSchedulerName of statsTitles | keys" class="col-lg-4 col-md-12">
8 <div class="panel-heading">{{ statsTitles[requestSchedulerName] }}</div> 8 <div class="panel panel-default" *ngIf="stats[requestSchedulerName] !== null">
9 9 <div class="panel-heading">{{ statsTitles[requestSchedulerName] }}</div>
10 <div class="panel-body">
11 <div class="requests-general">
12 <div>
13 <span class="label-description">Remaining requests:</span>
14 {{ stats[requestSchedulerName].totalRequests }}
15 </div>
16 10
17 <div> 11 <div class="panel-body">
18 <span class="label-description">Interval seconds between requests:</span> 12 <div class="requests-general">
19 {{ stats[requestSchedulerName].secondsInterval }} 13 <div>
20 </div> 14 <span class="label-description">Remaining requests:</span>
15 {{ stats[requestSchedulerName].totalRequests }}
16 </div>
21 17
22 <div> 18 <div>
23 <span class="label-description">Remaining time before the scheduled request:</span> 19 <span class="label-description">Interval seconds between requests:</span>
24 {{ stats[requestSchedulerName].remainingSeconds }} 20 {{ stats[requestSchedulerName].secondsInterval }}
25 </div> 21 </div>
26 </div>
27 22
28 <div class="requests-limit"> 23 <div>
29 <div> 24 <span class="label-description">Remaining time before the scheduled request:</span>
30 <span class="label-description">Maximum number of different pods for a scheduled request:</span> 25 {{ stats[requestSchedulerName].remainingSeconds }}
31 {{ stats[requestSchedulerName].requestsLimitPods }} 26 </div>
32 </div> 27 </div>
33 28
34 <div> 29 <div class="requests-limit">
35 <span class="label-description">Maximum number of requests per pod for a scheduled request:</span> 30 <div>
36 {{ stats[requestSchedulerName].requestsLimitPerPod }} 31 <span class="label-description">Maximum number of different pods for a scheduled request:</span>
32 {{ stats[requestSchedulerName].requestsLimitPods }}
33 </div>
34
35 <div>
36 <span class="label-description">Maximum number of requests per pod for a scheduled request:</span>
37 {{ stats[requestSchedulerName].requestsLimitPerPod }}
38 </div>
37 </div> 39 </div>
38 </div> 40 </div>
39 </div> 41 </div>
40 </div> 42 </div>
41 </div> 43 </ng-template>
44
42 </div> 45 </div>
43</div> 46</div>
diff --git a/client/src/app/+admin/users/user-list/user-list.component.ts b/client/src/app/+admin/users/user-list/user-list.component.ts
index b6fb0ed99..12826741c 100644
--- a/client/src/app/+admin/users/user-list/user-list.component.ts
+++ b/client/src/app/+admin/users/user-list/user-list.component.ts
@@ -3,7 +3,7 @@ import { Component } from '@angular/core'
3import { NotificationsService } from 'angular2-notifications' 3import { NotificationsService } from 'angular2-notifications'
4 4
5import { ConfirmService } from '../../../core' 5import { ConfirmService } from '../../../core'
6import { User, Utils } from '../../../shared' 6import { RestDataSource, User, Utils } from '../../../shared'
7import { UserService } from '../shared' 7import { UserService } from '../shared'
8 8
9@Component({ 9@Component({
@@ -12,7 +12,7 @@ import { UserService } from '../shared'
12 styleUrls: [ './user-list.component.scss' ] 12 styleUrls: [ './user-list.component.scss' ]
13}) 13})
14export class UserListComponent { 14export class UserListComponent {
15 usersSource = null 15 usersSource: RestDataSource = null
16 tableSettings = { 16 tableSettings = {
17 mode: 'external', 17 mode: 'external',
18 attr: { 18 attr: {