mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
remove always-true showImageEditing variable
This commit is contained in:
parent
670371de64
commit
76b9411d6c
@ -21,9 +21,8 @@ define(["scripts/userpasswordpage", "loading", "libraryMenu", "apphost", "emby-l
|
|||||||
var fldImage = page.querySelector("#fldImage");
|
var fldImage = page.querySelector("#fldImage");
|
||||||
fldImage.classList.remove("hide");
|
fldImage.classList.remove("hide");
|
||||||
fldImage.innerHTML = "<img width='140px' src='" + imageUrl + "' />";
|
fldImage.innerHTML = "<img width='140px' src='" + imageUrl + "' />";
|
||||||
var showImageEditing = true;
|
|
||||||
Dashboard.getCurrentUser().then(function (loggedInUser) {
|
Dashboard.getCurrentUser().then(function (loggedInUser) {
|
||||||
if (showImageEditing && appHost.supports("fileinput") && (loggedInUser.Policy.IsAdministrator || user.Policy.EnableUserPreferenceAccess)) {
|
if (appHost.supports("fileinput") && (loggedInUser.Policy.IsAdministrator || user.Policy.EnableUserPreferenceAccess)) {
|
||||||
page.querySelector(".newImageForm").classList.remove("hide");
|
page.querySelector(".newImageForm").classList.remove("hide");
|
||||||
|
|
||||||
if (user.PrimaryImageTag) {
|
if (user.PrimaryImageTag) {
|
||||||
|
Loading…
Reference in New Issue
Block a user