Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listen Live Chunk on wqxr series #86

Merged
merged 9 commits into from
Apr 20, 2017
Merged

Listen Live Chunk on wqxr series #86

merged 9 commits into from
Apr 20, 2017

Conversation

noslouch
Copy link
Contributor

WE-7096

looks up a chunk according to the convention shows-<slug>-listenlive and renders it in the channel-header if something comes back.

@@ -28,9 +28,9 @@
{{/alt-channel-layout}}
{{else}}
{{#if model.channel.hasMarquee}}
{{x-marquee model=model.channel isStaff=session.data.isStaff adminURL=adminURL}}
{{x-marquee listenLive=model.listenLive.pagecontent model=model.channel isStaff=session.data.isStaff adminURL=adminURL}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't actually know the answer to this question, so I'm just throwing it out: would bad things happen if listenLive was '' (because the show chunk didn't exist), and you subsequently try to access an attr? Console error or...? Should there be a default chunk like shows-default-listenlive that gets used if the show chunk doesn't exist?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent question; answered by the tests. I create a listen live chunk on one test only; the others do not retrieve one and seem to render fine.

This can be tested on demo as well by loading up any show that isn't Q2. Ember is fairly forgiving when it comes to accessing keys on undefined values on templates, but not so much in JS files.

@noslouch noslouch merged commit 6f8d2e0 into master Apr 20, 2017
@noslouch noslouch deleted the brian-WE-7096 branch April 20, 2017 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants