diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/rest/rest-data-source.ts | 4 | ||||
-rw-r--r-- | client/src/app/shared/utils.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/shared/rest/rest-data-source.ts b/client/src/app/shared/rest/rest-data-source.ts index 847dd7c56..1def38c73 100644 --- a/client/src/app/shared/rest/rest-data-source.ts +++ b/client/src/app/shared/rest/rest-data-source.ts | |||
@@ -8,14 +8,14 @@ export class RestDataSource extends ServerDataSource { | |||
8 | endPoint: endpoint, | 8 | endPoint: endpoint, |
9 | sortFieldKey: 'sort', | 9 | sortFieldKey: 'sort', |
10 | dataKey: 'data' | 10 | dataKey: 'data' |
11 | } | 11 | }; |
12 | 12 | ||
13 | super(http, options); | 13 | super(http, options); |
14 | } | 14 | } |
15 | 15 | ||
16 | protected extractTotalFromResponse(res) { | 16 | protected extractTotalFromResponse(res) { |
17 | const rawData = res.json(); | 17 | const rawData = res.json(); |
18 | return rawData ? parseInt(rawData.total): 0; | 18 | return rawData ? parseInt(rawData.total) : 0; |
19 | } | 19 | } |
20 | 20 | ||
21 | protected addSortRequestOptions(requestOptions: RequestOptionsArgs) { | 21 | protected addSortRequestOptions(requestOptions: RequestOptionsArgs) { |
diff --git a/client/src/app/shared/utils.ts b/client/src/app/shared/utils.ts index 1dd6f96f0..5ab41fe5a 100644 --- a/client/src/app/shared/utils.ts +++ b/client/src/app/shared/utils.ts | |||
@@ -3,7 +3,7 @@ import { DatePipe } from '@angular/common'; | |||
3 | export class Utils { | 3 | export class Utils { |
4 | 4 | ||
5 | static dateToHuman(date: String) { | 5 | static dateToHuman(date: String) { |
6 | return new DatePipe('en').transform(date, 'medium') | 6 | return new DatePipe('en').transform(date, 'medium'); |
7 | } | 7 | } |
8 | 8 | ||
9 | static getRowDeleteButton() { | 9 | static getRowDeleteButton() { |