mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-07-22 10:19:57 +00:00
fix: block autoupdate on any modal opened
This commit is contained in:
@ -164,7 +164,7 @@
|
|||||||
function toggleTableAutoReload(interval) {
|
function toggleTableAutoReload(interval) {
|
||||||
clearInterval(tableAutoReloadTask);
|
clearInterval(tableAutoReloadTask);
|
||||||
tableAutoReloadTask = toggleAutoReload(tableAutoReloadButton, interval, tableAutoReloadInput, _ => {
|
tableAutoReloadTask = toggleAutoReload(tableAutoReloadButton, interval, tableAutoReloadInput, _ => {
|
||||||
if (!dashboardModal.classList.contains("show") &&
|
if (!hasActiveModal() &&
|
||||||
!hasActiveDropdown()) {
|
!hasActiveDropdown()) {
|
||||||
packagesLoad();
|
packagesLoad();
|
||||||
statusLoad();
|
statusLoad();
|
||||||
|
@ -68,6 +68,11 @@
|
|||||||
.some(el => el.classList.contains("show"));
|
.some(el => el.classList.contains("show"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hasActiveModal() {
|
||||||
|
return Array.from(document.querySelectorAll(".modal"))
|
||||||
|
.some(el => el.classList.contains("show"));
|
||||||
|
}
|
||||||
|
|
||||||
function headerClass(status) {
|
function headerClass(status) {
|
||||||
if (status === "pending") return ["bg-warning"];
|
if (status === "pending") return ["bg-warning"];
|
||||||
if (status === "building") return ["bg-warning"];
|
if (status === "building") return ["bg-warning"];
|
||||||
|
Reference in New Issue
Block a user