From 530899fd51f82f775b8b44c88df007324062bb69 Mon Sep 17 00:00:00 2001 From: MichalKinas <113341662+MichalKinas@users.noreply.github.com> Date: Tue, 5 Mar 2024 12:58:23 +0100 Subject: [PATCH] [ACS-6924] Rename tags and categories plugins (#9406) --- .../src/lib/category/services/category.service.spec.ts | 2 +- .../src/lib/category/services/category.service.ts | 2 +- lib/content-services/src/lib/tag/services/tag.service.spec.ts | 2 +- lib/content-services/src/lib/tag/services/tag.service.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/content-services/src/lib/category/services/category.service.spec.ts b/lib/content-services/src/lib/category/services/category.service.spec.ts index aa8e7f6676..895cf6b25d 100644 --- a/lib/content-services/src/lib/category/services/category.service.spec.ts +++ b/lib/content-services/src/lib/category/services/category.service.spec.ts @@ -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', () => { diff --git a/lib/content-services/src/lib/category/services/category.service.ts b/lib/content-services/src/lib/category/services/category.service.ts index 803b7cef15..29127058ef 100644 --- a/lib/content-services/src/lib/category/services/category.service.ts +++ b/lib/content-services/src/lib/category/services/category.service.ts @@ -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); } } diff --git a/lib/content-services/src/lib/tag/services/tag.service.spec.ts b/lib/content-services/src/lib/tag/services/tag.service.spec.ts index e4e561e914..df7d984fcd 100644 --- a/lib/content-services/src/lib/tag/services/tag.service.spec.ts +++ b/lib/content-services/src/lib/tag/services/tag.service.spec.ts @@ -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', () => { diff --git a/lib/content-services/src/lib/tag/services/tag.service.ts b/lib/content-services/src/lib/tag/services/tag.service.ts index 8c4f0bb6e5..13ae9acd05 100644 --- a/lib/content-services/src/lib/tag/services/tag.service.ts +++ b/lib/content-services/src/lib/tag/services/tag.service.ts @@ -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); } }