try to change adf core autoamtion service init

This commit is contained in:
eromano
2023-07-24 16:40:10 +02:00
parent c764e11938
commit 20cfe3ed93
3 changed files with 7 additions and 4 deletions

View File

@@ -145,7 +145,6 @@ import { UserInfoComponent } from './components/app-layout/user-info/user-info.c
bootstrap: [AppComponent] bootstrap: [AppComponent]
}) })
export class AppModule { export class AppModule {
constructor(automationService: CoreAutomationService) { constructor() {
automationService.setup();
} }
} }

View File

@@ -36,9 +36,10 @@ export class CoreAutomationService {
private userPreferencesService: UserPreferencesService, private userPreferencesService: UserPreferencesService,
private storageService: StorageService, private storageService: StorageService,
private auth: AuthenticationService private auth: AuthenticationService
) {} ) {
// eslint-disable-next-line no-console
console.log('ADF Core AutomationService init');
setup() {
const adfProxy = window['adf'] || {}; const adfProxy = window['adf'] || {};
adfProxy.getConfigField = (field: string): any => this.appConfigService.get(field); adfProxy.getConfigField = (field: string): any => this.appConfigService.get(field);

View File

@@ -17,6 +17,9 @@
import { browser } from 'protractor'; import { browser } from 'protractor';
/*
Open the CoreAutomationService in ADF core to see where we augment the window
*/
export class LocalStorageUtil { export class LocalStorageUtil {
static async getConfigField(field: string): Promise<any> { static async getConfigField(field: string): Promise<any> {