mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
try to change adf core autoamtion service init
This commit is contained in:
@@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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);
|
||||||
|
@@ -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> {
|
||||||
|
Reference in New Issue
Block a user