mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-3441] Fix aos plugin not detected on app deploy, failing e2e tests (#2600)
This commit is contained in:
@@ -38,14 +38,8 @@ import { canOpenWithOffice } from './evaluators';
|
||||
export class AosExtensionModule {
|
||||
constructor(extensions: ExtensionService, translation: TranslationService, aosService: AlfrescoOfficeExtensionService) {
|
||||
translation.addTranslationFolder('adf-office-services-ext', 'assets/adf-office-services-ext');
|
||||
if (!aosService.isAosPluginEnabled()) {
|
||||
extensions.setEvaluators({
|
||||
'aos.canOpenWithOffice': () => false
|
||||
});
|
||||
} else {
|
||||
extensions.setEvaluators({
|
||||
'aos.canOpenWithOffice': canOpenWithOffice
|
||||
});
|
||||
}
|
||||
extensions.setEvaluators({
|
||||
'aos.canOpenWithOffice': (context) => aosService.isAosPluginEnabled() && canOpenWithOffice(context)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user