Merge branch 'KON-16-Absprung-neuer-Kontakt-anlegen' of ssh://git.eclipse.org:29418/openk-usermodules/org.eclipse.openk-usermodules.contactBaseData.frontend into DEVELOP
diff --git a/src/app/shared/directives/agGrid/translate-column-definitions.directive.ts b/src/app/shared/directives/agGrid/translate-column-definitions.directive.ts
index 3b93479..eed444b 100644
--- a/src/app/shared/directives/agGrid/translate-column-definitions.directive.ts
+++ b/src/app/shared/directives/agGrid/translate-column-definitions.directive.ts
@@ -5,14 +5,14 @@
@Directive({
selector: '[columnDefs]',
})
-export class TranslateColumnDefintionsDirective implements AfterViewInit, OnDestroy {
+export class TranslateColumnDefintionsDirective implements OnInit, OnDestroy {
private _languageChangeSubscription: Subscription;
@Input()
public columnDefs: any;
constructor(public agGrid: AgGridAngular, public _translationService: TranslateService) {}
- ngAfterViewInit() {
+ ngOnInit() {
this.agGrid.columnDefs = this._getTranslatedColumnDefinitions();
this._languageChangeSubscription = this._translationService.onLangChange.subscribe(() => {
const coldefs: any = this._getTranslatedColumnDefinitions();