mirror of
https://github.com/svemagie/indiekit-endpoint-youtube.git
synced 2026-04-02 15:54:59 +02:00
fix: dashboard controller support for multi-channel mode
The Indiekit backend UI was broken when using channels array because the dashboard controller only checked for channelId/channelHandle. Now uses getPrimaryChannel() helper to extract the first channel from either single-channel or multi-channel configuration. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
16
includes/@indiekit-endpoint-youtube-live.njk
Normal file
16
includes/@indiekit-endpoint-youtube-live.njk
Normal file
@@ -0,0 +1,16 @@
|
||||
{# Live status partial for embedding in other templates #}
|
||||
{% if liveStatus and liveStatus.isLive %}
|
||||
<div class="youtube-live youtube-live--active">
|
||||
<span class="youtube-live__badge">Live</span>
|
||||
<a href="https://www.youtube.com/watch?v={{ liveStatus.videoId }}" target="_blank" rel="noopener">
|
||||
{{ liveStatus.title }}
|
||||
</a>
|
||||
</div>
|
||||
{% elif liveStatus and liveStatus.isUpcoming %}
|
||||
<div class="youtube-live youtube-live--upcoming">
|
||||
<span class="youtube-live__badge">Upcoming</span>
|
||||
<a href="https://www.youtube.com/watch?v={{ liveStatus.videoId }}" target="_blank" rel="noopener">
|
||||
{{ liveStatus.title }}
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user