Merge pull request #3322 from thornbill/add-channels-button

Add channels link to home page section
This commit is contained in:
Bill Thornton 2022-01-13 10:53:31 -05:00 committed by GitHub
commit afd940bbb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -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;
} }

View File

@ -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>';