diff options
Diffstat (limited to 'client/src/app/shared/video/abstract-video-list.ts')
-rw-r--r-- | client/src/app/shared/video/abstract-video-list.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/shared/video/abstract-video-list.ts b/client/src/app/shared/video/abstract-video-list.ts index 100cbff8d..1c84573da 100644 --- a/client/src/app/shared/video/abstract-video-list.ts +++ b/client/src/app/shared/video/abstract-video-list.ts | |||
@@ -10,6 +10,7 @@ import { AuthService } from '../../core/auth' | |||
10 | import { ComponentPagination } from '../rest/component-pagination.model' | 10 | import { ComponentPagination } from '../rest/component-pagination.model' |
11 | import { VideoSortField } from './sort-field.type' | 11 | import { VideoSortField } from './sort-field.type' |
12 | import { Video } from './video.model' | 12 | import { Video } from './video.model' |
13 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
13 | 14 | ||
14 | export abstract class AbstractVideoList implements OnInit, OnDestroy { | 15 | export abstract class AbstractVideoList implements OnInit, OnDestroy { |
15 | private static LINES_PER_PAGE = 4 | 16 | private static LINES_PER_PAGE = 4 |
@@ -40,6 +41,7 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy { | |||
40 | protected abstract authService: AuthService | 41 | protected abstract authService: AuthService |
41 | protected abstract router: Router | 42 | protected abstract router: Router |
42 | protected abstract route: ActivatedRoute | 43 | protected abstract route: ActivatedRoute |
44 | protected abstract i18n: I18n | ||
43 | protected abstract location: Location | 45 | protected abstract location: Location |
44 | protected abstract currentRoute: string | 46 | protected abstract currentRoute: string |
45 | abstract titlePage: string | 47 | abstract titlePage: string |
@@ -124,7 +126,7 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy { | |||
124 | }, | 126 | }, |
125 | error => { | 127 | error => { |
126 | this.loadingPage[page] = false | 128 | this.loadingPage[page] = false |
127 | this.notificationsService.error('Error', error.message) | 129 | this.notificationsService.error(this.i18n('Error'), error.message) |
128 | } | 130 | } |
129 | ) | 131 | ) |
130 | } | 132 | } |