diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-02-10 11:51:51 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-02-10 11:52:45 +0100 |
commit | 7af75da41ba32451c3e9564714b05b506bdd881d (patch) | |
tree | 9f308d082acb8cbd045c3e378751a52d69f37c8c /client/src/app/shared | |
parent | f6f7dfee01e8b7ddf62d2549b8f381d0b12b590e (diff) | |
download | PeerTube-7af75da41ba32451c3e9564714b05b506bdd881d.tar.gz PeerTube-7af75da41ba32451c3e9564714b05b506bdd881d.tar.zst PeerTube-7af75da41ba32451c3e9564714b05b506bdd881d.zip |
Client: fix lint
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() { |