diff --git a/src/components/homeScreenSettings/homeScreenSettings.template.html b/src/components/homeScreenSettings/homeScreenSettings.template.html index d3a9206c33..2ecb1cea5e 100644 --- a/src/components/homeScreenSettings/homeScreenSettings.template.html +++ b/src/components/homeScreenSettings/homeScreenSettings.template.html @@ -27,6 +27,7 @@ + @@ -41,6 +42,7 @@ + @@ -55,6 +57,7 @@ + @@ -69,6 +72,7 @@ + @@ -83,6 +87,7 @@ + @@ -97,6 +102,7 @@ + @@ -111,6 +117,7 @@ + diff --git a/src/components/homesections/homesections.js b/src/components/homesections/homesections.js index 59d948e129..ff5c2dbed2 100644 --- a/src/components/homesections/homesections.js +++ b/src/components/homesections/homesections.js @@ -147,6 +147,8 @@ import ServerConnections from '../ServerConnections'; loadLatestLiveTvRecordings(elem, true, apiClient); } else if (section === 'nextup') { loadNextUp(elem, apiClient, userSettings); + } else if (section === 'rewatching') { + loadNextUp(elem, apiClient, userSettings, true); } else if (section === 'onnow' || section === 'livetv') { return loadOnNow(elem, apiClient, user); } else if (section === 'resumebook') { @@ -636,7 +638,7 @@ import ServerConnections from '../ServerConnections'; }; } - function renderNextUpSection(elem, apiClient, userSettings, rewatching) { + function loadNextUp(elem, apiClient, userSettings, rewatching = false) { let html = ''; html += '
'; @@ -686,21 +688,6 @@ import ServerConnections from '../ServerConnections'; itemsContainer.parentContainer = elem; } - function loadNextUp(elem, apiClient, userSettings) { - elem.classList.remove('verticalSection'); - - for (let i = 0; i <= 1; i++) { - const frag = document.createElement('div'); - frag.classList.add('verticalSection'); - frag.classList.add('hide'); - elem.appendChild(frag); - - // 0 pass is regular next up - // 1 pass is rewatching next up - renderNextUpSection(frag, apiClient, userSettings, i == 1); - } - } - function getLatestRecordingsFetchFn(serverId, activeRecordingsOnly) { return function () { const apiClient = ServerConnections.getApiClient(serverId);