fix (upload): click on loading item

clicking on a item loading would redirect the user to the root, we are
much better off disabling the link
This commit is contained in:
MickaelK 2025-09-24 11:49:38 +10:00
parent b9104626fc
commit 3ef7f92d42

View file

@ -143,7 +143,7 @@ export function createThing({
if (loading) { if (loading) {
$img.setAttribute("src", IMAGE.LOADING); $img.setAttribute("src", IMAGE.LOADING);
$img.setAttribute("alt", "loading"); $img.setAttribute("alt", "loading");
$link.setAttribute("href", "#"); $link.removeAttribute("href");
$extension.innerHTML = ""; $extension.innerHTML = "";
return $thing; return $thing;
} else if (type === "hidden") { } else if (type === "hidden") {