mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
fix pagination i18n setup (#2195)
This commit is contained in:
parent
734c1260ca
commit
f2db536148
@ -26,6 +26,7 @@ import {
|
||||
} from '@angular/core';
|
||||
|
||||
import { Pagination } from 'alfresco-js-api';
|
||||
import { TranslationService } from './../../services/translation.service';
|
||||
import { PaginationQueryParams } from './pagination-query-params.interface';
|
||||
|
||||
@Component({
|
||||
@ -73,6 +74,12 @@ export class PaginationComponent implements OnInit {
|
||||
@Output('prevPage')
|
||||
onPrevPage: EventEmitter<Pagination> = new EventEmitter<Pagination>();
|
||||
|
||||
constructor(translationService: TranslationService) {
|
||||
if (translationService) {
|
||||
translationService.addTranslationFolder('ng2-alfresco-core', 'assets/ng2-alfresco-core');
|
||||
}
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.pagination = {
|
||||
skipCount: 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user