mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-6924] Rename tags and categories plugins to mitigate naming conflicts (#3687)
* [ACS-6924] Rename tags and categories plugins to mitigate conflicts * [ACS-6924] Add missing logic for tags and categories plugins
This commit is contained in:
@@ -947,7 +947,7 @@ describe('app.evaluators', () => {
|
||||
};
|
||||
|
||||
app.areTagsEnabled(context);
|
||||
expect(context.appConfig.get).toHaveBeenCalledWith('plugins.tags', true);
|
||||
expect(context.appConfig.get).toHaveBeenCalledWith('plugins.tagsEnabled', true);
|
||||
});
|
||||
|
||||
it('should return true if get from appConfig returns true', () => {
|
||||
@@ -980,7 +980,7 @@ describe('app.evaluators', () => {
|
||||
};
|
||||
|
||||
app.areCategoriesEnabled(context);
|
||||
expect(context.appConfig.get).toHaveBeenCalledWith('plugins.categories', true);
|
||||
expect(context.appConfig.get).toHaveBeenCalledWith('plugins.categoriesEnabled', true);
|
||||
});
|
||||
|
||||
it('should return true if get from appConfig returns true', () => {
|
||||
|
@@ -647,6 +647,6 @@ export function isSmartFolder(context: RuleContext): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
export const areTagsEnabled = (context: AcaRuleContext): boolean => context.appConfig.get('plugins.tags', true);
|
||||
export const areTagsEnabled = (context: AcaRuleContext): boolean => context.appConfig.get('plugins.tagsEnabled', true);
|
||||
|
||||
export const areCategoriesEnabled = (context: AcaRuleContext): boolean => context.appConfig.get('plugins.categories', true);
|
||||
export const areCategoriesEnabled = (context: AcaRuleContext): boolean => context.appConfig.get('plugins.categoriesEnabled', true);
|
||||
|
Reference in New Issue
Block a user