diff options
author | Chocobozzz <me@florianbigard.com> | 2022-09-16 10:33:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-09-16 10:33:55 +0200 |
commit | 3afe0ec3b32d2bd9183541ecbf40278710f8707d (patch) | |
tree | b2abcc754dfa9a3b22d8a56c89902da801265b86 /client/src/app/shared/shared-main | |
parent | 56162c6a06732b6beb2021d0d95450363e21cadf (diff) | |
download | PeerTube-3afe0ec3b32d2bd9183541ecbf40278710f8707d.tar.gz PeerTube-3afe0ec3b32d2bd9183541ecbf40278710f8707d.tar.zst PeerTube-3afe0ec3b32d2bd9183541ecbf40278710f8707d.zip |
Fix broken dates with localized pages
Diffstat (limited to 'client/src/app/shared/shared-main')
3 files changed, 2 insertions, 7 deletions
diff --git a/client/src/app/shared/shared-main/users/user-notification.service.ts b/client/src/app/shared/shared-main/users/user-notification.service.ts index df886ed65..0b3dd9a53 100644 --- a/client/src/app/shared/shared-main/users/user-notification.service.ts +++ b/client/src/app/shared/shared-main/users/user-notification.service.ts | |||
@@ -40,7 +40,6 @@ export class UserNotificationService { | |||
40 | 40 | ||
41 | return this.authHttp.get<ResultList<UserNotification>>(UserNotificationService.BASE_NOTIFICATIONS_URL, { params, context }) | 41 | return this.authHttp.get<ResultList<UserNotification>>(UserNotificationService.BASE_NOTIFICATIONS_URL, { params, context }) |
42 | .pipe( | 42 | .pipe( |
43 | map(res => this.restExtractor.convertResultListDateToHuman(res)), | ||
44 | map(res => this.restExtractor.applyToResultListData(res, this.formatNotification.bind(this))), | 43 | map(res => this.restExtractor.applyToResultListData(res, this.formatNotification.bind(this))), |
45 | catchError(err => this.restExtractor.handleError(err)) | 44 | catchError(err => this.restExtractor.handleError(err)) |
46 | ) | 45 | ) |
diff --git a/client/src/app/shared/shared-main/video/video-import.service.ts b/client/src/app/shared/shared-main/video/video-import.service.ts index f9720033a..607c08d71 100644 --- a/client/src/app/shared/shared-main/video/video-import.service.ts +++ b/client/src/app/shared/shared-main/video/video-import.service.ts | |||
@@ -64,7 +64,6 @@ export class VideoImportService { | |||
64 | .get<ResultList<VideoImport>>(UserService.BASE_USERS_URL + '/me/videos/imports', { params }) | 64 | .get<ResultList<VideoImport>>(UserService.BASE_USERS_URL + '/me/videos/imports', { params }) |
65 | .pipe( | 65 | .pipe( |
66 | switchMap(res => this.extractVideoImports(res)), | 66 | switchMap(res => this.extractVideoImports(res)), |
67 | map(res => this.restExtractor.convertResultListDateToHuman(res)), | ||
68 | catchError(err => this.restExtractor.handleError(err)) | 67 | catchError(err => this.restExtractor.handleError(err)) |
69 | ) | 68 | ) |
70 | } | 69 | } |
diff --git a/client/src/app/shared/shared-main/video/video-ownership.service.ts b/client/src/app/shared/shared-main/video/video-ownership.service.ts index bc0e1b1d1..1e8f7f68c 100644 --- a/client/src/app/shared/shared-main/video/video-ownership.service.ts +++ b/client/src/app/shared/shared-main/video/video-ownership.service.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { SortMeta } from 'primeng/api' | 1 | import { SortMeta } from 'primeng/api' |
2 | import { Observable } from 'rxjs' | 2 | import { Observable } from 'rxjs' |
3 | import { catchError, map } from 'rxjs/operators' | 3 | import { catchError } from 'rxjs/operators' |
4 | import { HttpClient, HttpParams } from '@angular/common/http' | 4 | import { HttpClient, HttpParams } from '@angular/common/http' |
5 | import { Injectable } from '@angular/core' | 5 | import { Injectable } from '@angular/core' |
6 | import { RestExtractor, RestPagination, RestService } from '@app/core' | 6 | import { RestExtractor, RestPagination, RestService } from '@app/core' |
@@ -35,10 +35,7 @@ export class VideoOwnershipService { | |||
35 | params = this.restService.addRestGetParams(params, pagination, sort) | 35 | params = this.restService.addRestGetParams(params, pagination, sort) |
36 | 36 | ||
37 | return this.authHttp.get<ResultList<VideoChangeOwnership>>(url, { params }) | 37 | return this.authHttp.get<ResultList<VideoChangeOwnership>>(url, { params }) |
38 | .pipe( | 38 | .pipe(catchError(res => this.restExtractor.handleError(res))) |
39 | map(res => this.restExtractor.convertResultListDateToHuman(res)), | ||
40 | catchError(res => this.restExtractor.handleError(res)) | ||
41 | ) | ||
42 | } | 39 | } |
43 | 40 | ||
44 | acceptOwnership (id: number, input: VideoChangeOwnershipAccept) { | 41 | acceptOwnership (id: number, input: VideoChangeOwnershipAccept) { |