Add 'Series' button to Live TV menu off homesection (#372)

* Add Series button to main page

* Fix typo

* Fix typo
This commit is contained in:
Chuck Connors 2019-07-01 12:14:28 -05:00 committed by dkanada
parent 3ea6bb5094
commit b592abbeff
2 changed files with 9 additions and 0 deletions

View File

@ -701,6 +701,11 @@ define(['connectionManager', 'cardBuilder', 'appSettings', 'dom', 'apphost', 'la
section: 'dvrschedule'
}) + '" class="raised"><span>' + globalize.translate('Schedule') + '</span></a>';
html += '<a style="margin-left:.5em;margin-right:0;" is="emby-linkbutton" href="' + appRouter.getRouteUrl('livetv', {
serverId: apiClient.serverId(),
section: 'seriesrecording'
}) + '" class="raised"><span>' + globalize.translate('Series') + '</span></a>';
html += '</div>';
if (enableScrollX()) {
html += '</div>';

View File

@ -1044,6 +1044,10 @@ var AppInfo = {};
return "livetv.html?tab=4&serverId=" + options.serverId;
}
if ("seriesrecording" === options.section) {
return "livetv.html?tab=5&serverId=" + options.serverId;
}
return "livetv.html?serverId=" + options.serverId;
}