mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-07-16 15:29:56 +00:00
feat: block refresh upon opening dashboard or changing table position
This commit is contained in:
@ -241,7 +241,9 @@
|
|||||||
function toggleTableAutoReload(interval) {
|
function toggleTableAutoReload(interval) {
|
||||||
clearInterval(tableAutoReloadTask);
|
clearInterval(tableAutoReloadTask);
|
||||||
tableAutoReloadTask = toggleAutoReload(tableAutoReloadButton, interval, tableAutoReloadInput, _ => {
|
tableAutoReloadTask = toggleAutoReload(tableAutoReloadButton, interval, tableAutoReloadInput, _ => {
|
||||||
if (getSelection().length === 0) {
|
if ((getSelection().length === 0) &&
|
||||||
|
(table.bootstrapTable("getOptions").pageNumber === 1) &&
|
||||||
|
(!dashboardModal.classList.contains("show"))) {
|
||||||
reload(true);
|
reload(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user