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]
|
||||
})
|
||||
export class AppModule {
|
||||
constructor(automationService: CoreAutomationService) {
|
||||
automationService.setup();
|
||||
constructor() {
|
||||
}
|
||||
}
|
||||
|
@@ -36,9 +36,10 @@ export class CoreAutomationService {
|
||||
private userPreferencesService: UserPreferencesService,
|
||||
private storageService: StorageService,
|
||||
private auth: AuthenticationService
|
||||
) {}
|
||||
) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('ADF Core AutomationService init');
|
||||
|
||||
setup() {
|
||||
const adfProxy = window['adf'] || {};
|
||||
|
||||
adfProxy.getConfigField = (field: string): any => this.appConfigService.get(field);
|
||||
|
@@ -17,6 +17,9 @@
|
||||
|
||||
import { browser } from 'protractor';
|
||||
|
||||
/*
|
||||
Open the CoreAutomationService in ADF core to see where we augment the window
|
||||
*/
|
||||
export class LocalStorageUtil {
|
||||
|
||||
static async getConfigField(field: string): Promise<any> {
|
||||
|
Reference in New Issue
Block a user