Adding more payload support

This commit is contained in:
jhouse
2020-02-13 15:33:53 +09:00
parent bcdc4f8a52
commit bfe8a75186
2 changed files with 3 additions and 1 deletions

View File

@@ -77,6 +77,7 @@ document.addEventListener('DOMContentLoaded', function () {
});
});
//Exposing function for onClick()
window.testTmdbKey = testTmdbKey;
window.saveTmdbKey = saveTmdbKey;
window.testPlexServer = testPlexServer;

View File

@@ -9,6 +9,7 @@
*/
import {getRecommendedMoviesForTable} from '/js/modules/common.js';
import {Payload} from '/js/modules/payload.js';
let libraryTitle, notSearchedYetContainer, movieContainer, searchContainer, noMovieContainer, movieSearchingContainer;
let plexServers;
@@ -90,7 +91,7 @@ jQuery(function ($) {
backButton.text('Restart');
disconnect();
if (payload && payload.code === 0) {
if (payload && payload.code === Payload.SEARCH_SUCCESSFUL) {
searchTitle.text(`Search Complete`);
searchDescription.text(`${movieCounter} movies to add to complete your collections. Below is everything Gaps found that is missing from your movie collections.`);
setCopyToClipboardEnabled(true);