Skip to content

Commit

Permalink
Merge pull request #485 from sunbird-cb/scrom-url
Browse files Browse the repository at this point in the history
Scrom url
  • Loading branch information
christyfernandes authored Jul 1, 2022
2 parents c9d7226 + 2859633 commit 064b65e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,13 +345,14 @@ export class ViewerTocComponent implements OnInit, OnDestroy {
// duration: collection.duration,
// redirectUrl: this.getCollectionTypeRedirectUrl(collection.displayContentType, collection.identifier),
// }
const img = collection.posterImage ? collection.posterImage : collection.appIcon
return {
type: this.getCollectionTypeCard(collection.primaryCategory),
id: collection.identifier,
title: collection.name,
thumbnail: this.forPreview
? this.viewSvc.getAuthoringUrl(this.viewSvc.getPublicUrl(collection.posterImage))
: this.viewSvc.getPublicUrl(collection.posterImage),
? this.viewSvc.getAuthoringUrl(this.viewSvc.getPublicUrl(img))
: this.viewSvc.getPublicUrl(img),
subText1: collection.primaryCategory,
subText2: collection.difficultyLevel,
duration: collection.duration,
Expand Down

0 comments on commit 064b65e

Please sign in to comment.