From c6f4327a91b9c9de3400270b55a377bb1b9c16e9 Mon Sep 17 00:00:00 2001 From: nitinraj-tarento Date: Mon, 15 Jul 2024 13:05:13 +0530 Subject: [PATCH] tips for learner show all btn function updated --- .../tips-for-learner-card.component.ts | 7 ++++++- .../components/app-toc-home/app-toc-home.component.ts | 4 +--- .../in-sight-side-bar/in-sight-side-bar.component.ts | 4 +--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/library/ws-widget/collection/src/lib/_common/tips-for-learner/tips-for-learner-card/tips-for-learner-card.component.ts b/library/ws-widget/collection/src/lib/_common/tips-for-learner/tips-for-learner-card/tips-for-learner-card.component.ts index 495fab7e88..f434983630 100644 --- a/library/ws-widget/collection/src/lib/_common/tips-for-learner/tips-for-learner-card/tips-for-learner-card.component.ts +++ b/library/ws-widget/collection/src/lib/_common/tips-for-learner/tips-for-learner-card/tips-for-learner-card.component.ts @@ -1,4 +1,5 @@ import { Component, Input, OnInit } from '@angular/core' +import { Router } from '@angular/router' @Component({ selector: 'ws-widget-tips-for-learner-card', @@ -9,7 +10,7 @@ export class TipsForLearnerCardComponent implements OnInit { randomlearnAdvisoryObj: any learnAdvisoryDataLength: any @Input() learnAdvisoryData: any - constructor() { } + constructor(private router: Router) { } ngOnInit() { this.displayRandomlearnAdvisoryData() @@ -23,4 +24,8 @@ export class TipsForLearnerCardComponent implements OnInit { } + showAllTips() { + this.router.navigate(['/learner-advisory']) + } + } diff --git a/project/ws/app/src/lib/routes/app-toc/components/app-toc-home/app-toc-home.component.ts b/project/ws/app/src/lib/routes/app-toc/components/app-toc-home/app-toc-home.component.ts index 10bb44473d..9c238f55ae 100755 --- a/project/ws/app/src/lib/routes/app-toc/components/app-toc-home/app-toc-home.component.ts +++ b/project/ws/app/src/lib/routes/app-toc/components/app-toc-home/app-toc-home.component.ts @@ -1848,7 +1848,5 @@ export class AppTocHomeComponent implements OnInit, OnDestroy, AfterViewChecked, programEnrollCall(batchData: any) { this.autoEnrollCuratedProgram(NsContent.ECourseCategory.MODERATED_PROGRAM, batchData) } - showAllTips() { - this.router.navigate(['/learner-advisory']); - } + } diff --git a/src/app/component/in-sight-side-bar/in-sight-side-bar.component.ts b/src/app/component/in-sight-side-bar/in-sight-side-bar.component.ts index 33bd306a35..76dcc4036e 100644 --- a/src/app/component/in-sight-side-bar/in-sight-side-bar.component.ts +++ b/src/app/component/in-sight-side-bar/in-sight-side-bar.component.ts @@ -346,7 +346,5 @@ export class InsightSideBarComponent implements OnInit { duration, }) } - showAllTips() { - this.router.navigate(['/learner-advisory']) - } + }