mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +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 {
|
export class AosExtensionModule {
|
||||||
constructor(extensions: ExtensionService, translation: TranslationService, aosService: AlfrescoOfficeExtensionService) {
|
constructor(extensions: ExtensionService, translation: TranslationService, aosService: AlfrescoOfficeExtensionService) {
|
||||||
translation.addTranslationFolder('adf-office-services-ext', 'assets/adf-office-services-ext');
|
translation.addTranslationFolder('adf-office-services-ext', 'assets/adf-office-services-ext');
|
||||||
if (!aosService.isAosPluginEnabled()) {
|
|
||||||
extensions.setEvaluators({
|
extensions.setEvaluators({
|
||||||
'aos.canOpenWithOffice': () => false
|
'aos.canOpenWithOffice': (context) => aosService.isAosPluginEnabled() && canOpenWithOffice(context)
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
extensions.setEvaluators({
|
|
||||||
'aos.canOpenWithOffice': canOpenWithOffice
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user