diff --git a/web/directives/offline-config.js b/web/directives/offline-config.js index 7b7ff73..48f6e25 100644 --- a/web/directives/offline-config.js +++ b/web/directives/offline-config.js @@ -33,6 +33,9 @@ module.exports = function ($timeout) { scope.onDone(JSON.parse(angular.toJson(prog))) scope.program = null } + scope.showList = () => { + return ! scope.showPlexLibrary && ! scope.showFallbackPlexLibrary; + } scope.sortFillers = () => { scope.program.filler.sort( (a,b) => { return a.duration - b.duration } ); } @@ -60,6 +63,7 @@ module.exports = function ($timeout) { selectedPrograms[i].commercials = [] } scope.program.filler = scope.program.filler.concat(selectedPrograms); + scope.showPlexLibrary = false; } scope.importFallback = (selectedPrograms) => { @@ -70,6 +74,7 @@ module.exports = function ($timeout) { if (selectedPrograms.length > 0) { scope.program.fallback = [ selectedPrograms[0] ]; } + scope.showFallbackPlexLibrary = false; } diff --git a/web/public/templates/offline-config.html b/web/public/templates/offline-config.html index 69d27a7..2c29eb2 100644 --- a/web/public/templates/offline-config.html +++ b/web/public/templates/offline-config.html @@ -138,7 +138,7 @@
Click the to import filler content from your Plex server(s).