Visual Studio forgot about these
This commit is contained in:
parent
fc400560e6
commit
964822cd94
@ -312,7 +312,7 @@
|
|||||||
|
|
||||||
<div id="SkipButtonContainer" class="checkboxContainer checkboxContainer-withDescription">
|
<div id="SkipButtonContainer" class="checkboxContainer checkboxContainer-withDescription">
|
||||||
<label class="emby-checkbox-label">
|
<label class="emby-checkbox-label">
|
||||||
<input id="SkipButtonVisible" type="checkbox" is="emby-checkbox" />
|
<input id="SkipButtonEnabled" type="checkbox" is="emby-checkbox" />
|
||||||
<span id="SkipButtonVisibleLabel">Show skip intro / credit button</span>
|
<span id="SkipButtonVisibleLabel">Show skip intro / credit button</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
@ -668,7 +668,7 @@
|
|||||||
"AutoSkipCreditsNotificationText",
|
"AutoSkipCreditsNotificationText",
|
||||||
];
|
];
|
||||||
|
|
||||||
var booleanConfigurationFields = ["AutoDetectIntros", "AutoDetectCredits", "AnalyzeMovies", "AnalyzeSeasonZero", "SelectAllLibraries", "UpdateMediaSegments", "RegenerateMediaSegments", "CacheFingerprints", "AutoSkip", "AutoSkipCredits", "SkipFirstEpisode", "PersistSkipButton", "SkipButtonVisible"];
|
var booleanConfigurationFields = ["AutoDetectIntros", "AutoDetectCredits", "AnalyzeMovies", "AnalyzeSeasonZero", "SelectAllLibraries", "UpdateMediaSegments", "RegenerateMediaSegments", "CacheFingerprints", "AutoSkip", "AutoSkipCredits", "SkipFirstEpisode", "PersistSkipButton", "SkipButtonEnabled"];
|
||||||
|
|
||||||
// visualizer elements
|
// visualizer elements
|
||||||
var ignorelistSection = document.querySelector("div#ignorelistSection");
|
var ignorelistSection = document.querySelector("div#ignorelistSection");
|
||||||
@ -700,7 +700,7 @@
|
|||||||
|
|
||||||
var analyzeMovies = document.getElementById("AnalyzeMovies");
|
var analyzeMovies = document.getElementById("AnalyzeMovies");
|
||||||
var autoSkip = document.querySelector("input#AutoSkip");
|
var autoSkip = document.querySelector("input#AutoSkip");
|
||||||
var skipButtonVisible = document.getElementById("SkipButtonVisible");
|
var skipButtonVisible = document.getElementById("SkipButtonEnabled");
|
||||||
var skipButtonVisibleLabel = document.getElementById("SkipButtonVisibleLabel");
|
var skipButtonVisibleLabel = document.getElementById("SkipButtonVisibleLabel");
|
||||||
var skipButtonSettings = document.getElementById("SkipButtonSettings");
|
var skipButtonSettings = document.getElementById("SkipButtonSettings");
|
||||||
var selectAllLibraries = document.querySelector("input#SelectAllLibraries");
|
var selectAllLibraries = document.querySelector("input#SelectAllLibraries");
|
||||||
|
@ -195,7 +195,7 @@ const introSkipper = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const config = await this.secureFetch("Intros/UserInterfaceConfiguration");
|
const config = await this.secureFetch("Intros/UserInterfaceConfiguration");
|
||||||
if (!config.SkipButtonVisible) {
|
if (!config.SkipButtonEnabled) {
|
||||||
this.d("Not adding button: not visible");
|
this.d("Not adding button: not visible");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -387,7 +387,7 @@ const introSkipper = {
|
|||||||
const isAutoSkipClient = new Set(config.ClientList.split(",")).has(
|
const isAutoSkipClient = new Set(config.ClientList.split(",")).has(
|
||||||
ApiClient.appName(),
|
ApiClient.appName(),
|
||||||
);
|
);
|
||||||
return isAutoSkip || (config.SkipButtonVisible && isAutoSkipClient);
|
return isAutoSkip || (config.SkipButtonEnabled && isAutoSkipClient);
|
||||||
},
|
},
|
||||||
async injectIntroSkipperOptions(actionSheet) {
|
async injectIntroSkipperOptions(actionSheet) {
|
||||||
if (!this.skipButton) return;
|
if (!this.skipButton) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user