Removed share button if not using Plex Auth

This commit is contained in:
aunefyren 2022-01-21 11:50:35 +01:00
parent 747a4dd16a
commit 4cf7e3fa9f
2 changed files with 3 additions and 2 deletions

View file

@ -115,7 +115,8 @@ $functions_json = array("wrapperr_version" => $config->wrapperr_version,
"wrapperr_second" => $config->wrapperr_second,
"wrapperr_second_plural" => $config->wrapperr_second_plural,
"wrapperr_sort_plays" => $config->wrapperr_sort_plays,
"wrapperr_sort_duration" => $config->wrapperr_sort_duration
"wrapperr_sort_duration" => $config->wrapperr_sort_duration,
"use_plex_auth" => $config->use_plex_auth
);
// Encode JSON and print it

View file

@ -961,7 +961,7 @@ function load_outro() {
text += "<div class='boks2' style='margin-top:5em;'>";
if(!link_mode && functions.create_share_links) {
if(!link_mode && functions.create_share_links && functions.use_plex_auth) {
text += "<div class='form-group' id='share_wrapped_div' style=''>";
text += "<button class='form-control btn' name='share_wrapped_button' id='share_wrapped_button' onclick='create_wrapped_link()'>";