From 42374cf5d40b8266cf7b0ee68732c436c1d45a06 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 25 Jun 2017 11:35:09 +0200 Subject: Fix client admin --- .../request-stats/request-stats.component.html | 57 ++++++++++++---------- .../+admin/users/user-list/user-list.component.ts | 4 +- client/src/app/shared/rest/rest-data-source.ts | 4 +- 3 files changed, 34 insertions(+), 31 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 @@

Requests stats

-
-
-
{{ statsTitles[requestSchedulerName] }}
- -
-
-
- Remaining requests: - {{ stats[requestSchedulerName].totalRequests }} -
+ +
+
+
{{ statsTitles[requestSchedulerName] }}
-
- Interval seconds between requests: - {{ stats[requestSchedulerName].secondsInterval }} -
+
+
+
+ Remaining requests: + {{ stats[requestSchedulerName].totalRequests }} +
-
- Remaining time before the scheduled request: - {{ stats[requestSchedulerName].remainingSeconds }} -
-
+
+ Interval seconds between requests: + {{ stats[requestSchedulerName].secondsInterval }} +
-
-
- Maximum number of different pods for a scheduled request: - {{ stats[requestSchedulerName].requestsLimitPods }} +
+ Remaining time before the scheduled request: + {{ stats[requestSchedulerName].remainingSeconds }} +
-
- Maximum number of requests per pod for a scheduled request: - {{ stats[requestSchedulerName].requestsLimitPerPod }} +
+
+ Maximum number of different pods for a scheduled request: + {{ stats[requestSchedulerName].requestsLimitPods }} +
+ +
+ Maximum number of requests per pod for a scheduled request: + {{ stats[requestSchedulerName].requestsLimitPerPod }} +
-
+ +
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' import { NotificationsService } from 'angular2-notifications' import { ConfirmService } from '../../../core' -import { User, Utils } from '../../../shared' +import { RestDataSource, User, Utils } from '../../../shared' import { UserService } from '../shared' @Component({ @@ -12,7 +12,7 @@ import { UserService } from '../shared' styleUrls: [ './user-list.component.scss' ] }) export class UserListComponent { - usersSource = null + usersSource: RestDataSource = null tableSettings = { mode: 'external', attr: { diff --git a/client/src/app/shared/rest/rest-data-source.ts b/client/src/app/shared/rest/rest-data-source.ts index 2ef5d38da..7956637e0 100644 --- a/client/src/app/shared/rest/rest-data-source.ts +++ b/client/src/app/shared/rest/rest-data-source.ts @@ -19,7 +19,7 @@ export class RestDataSource extends ServerDataSource { } protected addSortRequestOptions (requestOptions: RequestOptionsArgs) { - const searchParams = requestOptions.search as URLSearchParams + const searchParams = requestOptions.params as URLSearchParams if (this.sortConf) { this.sortConf.forEach((fieldConf) => { @@ -33,7 +33,7 @@ export class RestDataSource extends ServerDataSource { } protected addPagerRequestOptions (requestOptions: RequestOptionsArgs) { - const searchParams = requestOptions.search as URLSearchParams + const searchParams = requestOptions.params as URLSearchParams if (this.pagingConf && this.pagingConf['page'] && this.pagingConf['perPage']) { const perPage = this.pagingConf['perPage'] -- cgit v1.2.3