[ACS-6924] Rename tags and categories plugins (#9406)

This commit is contained in:
MichalKinas
2024-03-05 12:58:23 +01:00
committed by GitHub
parent 77a87f01df
commit 530899fd51
4 changed files with 4 additions and 4 deletions

View File

@@ -187,7 +187,7 @@ describe('CategoryService', () => {
it('should call get on AppConfigService with correct parameters', () => {
categoryService.areCategoriesEnabled();
expect(getSpy).toHaveBeenCalledWith('plugins.categories', true);
expect(getSpy).toHaveBeenCalledWith('plugins.categoriesEnabled', true);
});
it('should return true if get from AppConfigService returns true', () => {

View File

@@ -163,6 +163,6 @@ export class CategoryService {
* @returns boolean true if categories plugin is enabled, false otherwise.
*/
areCategoriesEnabled(): boolean {
return this.appConfigService.get('plugins.categories', true);
return this.appConfigService.get('plugins.categoriesEnabled', true);
}
}

View File

@@ -349,7 +349,7 @@ describe('TagService', () => {
it('should call get on AppConfigService with correct parameters', () => {
service.areTagsEnabled();
expect(getSpy).toHaveBeenCalledWith('plugins.tags', true);
expect(getSpy).toHaveBeenCalledWith('plugins.tagsEnabled', true);
});
it('should return true if get from AppConfigService returns true', () => {

View File

@@ -183,6 +183,6 @@ export class TagService {
* @returns boolean true if tags plugin is enabled, false otherwise.
*/
areTagsEnabled(): boolean {
return this.appConfigService.get('plugins.tags', true);
return this.appConfigService.get('plugins.tagsEnabled', true);
}
}