Skip to content

Commit

Permalink
Merge pull request #346 from nypublicradio/mwalsh/hotfix-listen-buttons
Browse files Browse the repository at this point in the history
Hotfix for listen buttons on centennial page
  • Loading branch information
walsh9 authored Jul 8, 2024
2 parents c4d8274 + 6e3a2cb commit e69cdae
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions app/components/centennial/centennial-card/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
{{#listen-button
isLive=false
type='blue-minion'
playContext=playContext
data-action=(concat 'Clicked Play/Pause ' 'On Demand: ' playContext)
data-label=item.title
itemPK=item.attributes.cmsPK
itemTitle=item.title
itemShow=(or item.attributes.showTitle item.attributes.headers.brand.title)
playContext='centennial'
isCurrentSound=(and (eq story.id currentPlaylistStoryPk) isPlaying)
data-action=(concat 'Clicked Play/Pause ' 'On Demand: ' 'centennial')
data-label=item.attributes.title
itemPK=item.attributes.slug
itemTitle=item.attributes.title
itemShow=(or item.attributes.showTitle item.attributes.channelTitle item.attributes.headers.brand.title)
}}
Listen
<span class="centennial-card__duration">{{item.attributes.audioDurationReadable}}</span>
Expand Down

0 comments on commit e69cdae

Please sign in to comment.