diff --git a/package-lock.json b/package-lock.json index 4ee646426b..27a44e11e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5245,9 +5245,9 @@ } }, "@project-sunbird/common-consumption": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/@project-sunbird/common-consumption/-/common-consumption-7.0.6.tgz", - "integrity": "sha512-kUpGO6OkKD9qzCFrm9r2l4/kJq2E5HULICeJoxMbMgi/bHb4nO+rcj8mMMtV/ARPvMhO8LbACUh7DhFzN2RaLA==", + "version": "7.0.7", + "resolved": "https://registry.npmjs.org/@project-sunbird/common-consumption/-/common-consumption-7.0.7.tgz", + "integrity": "sha512-ztxXuXVYgNTZWywh+RjX8RC6CZ5Grgm7N7go5MmiSVVsvk27QXfRJdmDXoUUwLjW53oNKNraDp7JHRxTX22cVQ==", "requires": { "tslib": "^2.3.0" } diff --git a/package.json b/package.json index 12f30030e9..3e19ce573a 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "@ngx-translate/core": "^11.0.1", "@ngx-translate/http-loader": "^4.0.0", "@project-sunbird/client-services": "7.0.4", - "@project-sunbird/common-consumption": "7.0.6", + "@project-sunbird/common-consumption": "7.0.7", "@project-sunbird/common-form-elements": "6.0.0", "@project-sunbird/content-player": "5.1.0", "@project-sunbird/discussions-ui": "5.3.0-beta.0", diff --git a/src/app/resources/resources.component.html b/src/app/resources/resources.component.html index 9348f56007..3b77ea356d 100644 --- a/src/app/resources/resources.component.html +++ b/src/app/resources/resources.component.html @@ -36,11 +36,11 @@
-
+
@@ -54,9 +54,9 @@
{{result.name}}
-
+
diff --git a/src/app/resources/resources.component.ts b/src/app/resources/resources.component.ts index e408ba1769..8f5d529cb6 100644 --- a/src/app/resources/resources.component.ts +++ b/src/app/resources/resources.component.ts @@ -893,7 +893,8 @@ export class ResourcesComponent implements OnInit, AfterViewInit, OnDestroy, Fra await this.router.navigate([RouterLinks.TEXTBOOK_VIEW_MORE], { state: { contentList: items, - subjectName: subject + subjectName: subject, + categoryKeys: this.listofCategory } }); } else { diff --git a/src/app/textbook-view-more/textbook-view-more.page.html b/src/app/textbook-view-more/textbook-view-more.page.html index 7e379269c9..4af62cdde9 100644 --- a/src/app/textbook-view-more/textbook-view-more.page.html +++ b/src/app/textbook-view-more/textbook-view-more.page.html @@ -10,10 +10,10 @@
-
+
diff --git a/src/app/textbook-view-more/textbook-view-more.page.ts b/src/app/textbook-view-more/textbook-view-more.page.ts index 094461f3f5..ef64c41e3f 100644 --- a/src/app/textbook-view-more/textbook-view-more.page.ts +++ b/src/app/textbook-view-more/textbook-view-more.page.ts @@ -64,6 +64,7 @@ export class TextbookViewMorePage { displaySections?: any[]; totalCount: number; viewMoreTotalCount: number; + categoryKeys: []; constructor( @Inject('PROFILE_SERVICE') private profileService: ProfileService, @@ -86,6 +87,7 @@ export class TextbookViewMorePage { this.supportedFacets = extras.supportedFacets; this.totalCount = this.contentList.length; this.viewMoreTotalCount = extras.totalCount; + this.categoryKeys = extras.categoryKeys; } if(this.corRelationList) { this.corRelationList.forEach(list => {