mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[no-issue] Parallel run e2e and e2e common action refactoring (#4702)
This commit is contained in:
@@ -19,6 +19,7 @@ import { Injectable } from '@angular/core';
|
||||
import { AppConfigService } from '../app-config/app-config.service';
|
||||
import { AlfrescoApiService } from '../services/alfresco-api.service';
|
||||
import { StorageService } from './storage.service';
|
||||
import { UserPreferencesService } from './user-preferences.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
@@ -26,6 +27,7 @@ import { StorageService } from './storage.service';
|
||||
export class CoreAutomationService {
|
||||
constructor(private appConfigService: AppConfigService,
|
||||
private alfrescoApiService: AlfrescoApiService,
|
||||
private userPreferencesService: UserPreferencesService,
|
||||
private storageService: StorageService) {
|
||||
}
|
||||
|
||||
@@ -40,6 +42,10 @@ export class CoreAutomationService {
|
||||
this.storageService.setItem(key, data);
|
||||
};
|
||||
|
||||
adfProxy.setUserPreference = (key: string, data: any) => {
|
||||
this.userPreferencesService.set(key, data);
|
||||
};
|
||||
|
||||
adfProxy.clearStorage = () => {
|
||||
this.storageService.clear();
|
||||
};
|
||||
|
Reference in New Issue
Block a user