mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
Merge pull request #3322 from thornbill/add-channels-button
Add channels link to home page section
This commit is contained in:
commit
afd940bbb1
@ -797,6 +797,10 @@ class AppRouter {
|
|||||||
return '#!/list.html?type=Programs&IsAiring=true&serverId=' + options.serverId;
|
return '#!/list.html?type=Programs&IsAiring=true&serverId=' + options.serverId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options.section === 'channels') {
|
||||||
|
return '#!/livetv.html?tab=2&serverId=' + options.serverId;
|
||||||
|
}
|
||||||
|
|
||||||
if (options.section === 'dvrschedule') {
|
if (options.section === 'dvrschedule') {
|
||||||
return '#!/livetv.html?tab=4&serverId=' + options.serverId;
|
return '#!/livetv.html?tab=4&serverId=' + options.serverId;
|
||||||
}
|
}
|
||||||
|
@ -532,6 +532,11 @@ import ServerConnections from '../ServerConnections';
|
|||||||
section: 'guide'
|
section: 'guide'
|
||||||
}) + '" class="raised"><span>' + globalize.translate('Guide') + '</span></a>';
|
}) + '" class="raised"><span>' + globalize.translate('Guide') + '</span></a>';
|
||||||
|
|
||||||
|
html += '<a is="emby-linkbutton" href="' + appRouter.getRouteUrl('livetv', {
|
||||||
|
serverId: apiClient.serverId(),
|
||||||
|
section: 'channels'
|
||||||
|
}) + '" class="raised"><span>' + globalize.translate('Channels') + '</span></a>';
|
||||||
|
|
||||||
html += '<a is="emby-linkbutton" href="' + appRouter.getRouteUrl('recordedtv', {
|
html += '<a is="emby-linkbutton" href="' + appRouter.getRouteUrl('recordedtv', {
|
||||||
serverId: apiClient.serverId()
|
serverId: apiClient.serverId()
|
||||||
}) + '" class="raised"><span>' + globalize.translate('Recordings') + '</span></a>';
|
}) + '" class="raised"><span>' + globalize.translate('Recordings') + '</span></a>';
|
||||||
|
Loading…
Reference in New Issue
Block a user