Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Issue #ED-673 fix: Fixed category title issues
  • Loading branch information
sujithsojan committed Jan 2, 2023
commit 64a14a900dd7090e28bdec4d01934d5012c7d7db
7 changes: 6 additions & 1 deletion src/app/category-list/category-list-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,12 @@ export class CategoryListPage implements OnInit, OnDestroy {
this.primaryFacetFilters = extrasState.formField.primaryFacetFilters;
this.formField.facet = this.formField.facet.replace(/(^\w|\s\w)/g, m => m.toUpperCase());
this.categoryDescription = extrasState.description || '';
this.categoryTitle = extrasState.title || '';
if(extrasState.fromLibrary){
this.categoryTitle = extrasState.title || '';
}
else {
this.categoryTitle = "Browse By "+ this.formField.facet;
}
if (this.primaryFacetFilters) {
this.primaryFacetFiltersFormGroup = this.primaryFacetFilters.reduce<FormGroup>((acc, filter) => {
const facetFilterControl = new FormControl();
Expand Down