Skip to content

Commit

Permalink
Merge pull request #2314 from sunbird-cb/tips-for-learner-fix
Browse files Browse the repository at this point in the history
tips for learner show all btn function updated
  • Loading branch information
vishnubansaltarento authored Jul 15, 2024
2 parents e672ee6 + d7fc143 commit e418ccf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component, Input, OnInit } from '@angular/core'
import { Router } from '@angular/router'

@Component({
selector: 'ws-widget-tips-for-learner-card',
Expand All @@ -9,7 +10,7 @@ export class TipsForLearnerCardComponent implements OnInit {
randomlearnAdvisoryObj: any
learnAdvisoryDataLength: any
@Input() learnAdvisoryData: any
constructor() { }
constructor(private router: Router) { }

ngOnInit() {
this.displayRandomlearnAdvisoryData()
Expand All @@ -23,4 +24,8 @@ export class TipsForLearnerCardComponent implements OnInit {

}

showAllTips() {
this.router.navigate(['/learner-advisory'])
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,5 @@ export class InsightSideBarComponent implements OnInit {
duration,
})
}
showAllTips() {
this.router.navigate(['/learner-advisory'])
}

}

0 comments on commit e418ccf

Please sign in to comment.