mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Deuglify
Co-Authored-By: LogicalPhallacy <44458166+LogicalPhallacy@users.noreply.github.com>
This commit is contained in:
parent
82e0a2f7da
commit
e01feca025
@ -22,7 +22,11 @@ define(["jQuery", "loading", "libraryMenu", "fnchecked"], function($, loading, l
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadPasswordResetProviders(page, user, providers) {
|
function loadPasswordResetProviders(page, user, providers) {
|
||||||
providers.length > 1 && !user.Policy.IsAdministrator ? page.querySelector(".fldSelectPasswordResetProvider").classList.remove("hide") : page.querySelector(".fldSelectPasswordResetProvider").classList.add("hide");
|
if (providers.length > 1 && !user.Policy.IsAdministrator) {
|
||||||
|
page.querySelector(".fldSelectPasswordResetProvider").classList.remove("hide");
|
||||||
|
} else {
|
||||||
|
page.querySelector(".fldSelectPasswordResetProvider").classList.add("hide");
|
||||||
|
}
|
||||||
var currentProviderId = user.Policy.PasswordResetProviderId;
|
var currentProviderId = user.Policy.PasswordResetProviderId;
|
||||||
page.querySelector(".selectPasswordResetProvider").innerHTML = providers.map(function(provider) {
|
page.querySelector(".selectPasswordResetProvider").innerHTML = providers.map(function(provider) {
|
||||||
var selected = provider.Id === currentProviderId || providers.length < 2 ? " selected" : "";
|
var selected = provider.Id === currentProviderId || providers.length < 2 ? " selected" : "";
|
||||||
|
Loading…
Reference in New Issue
Block a user