fix set thresholds timeout
This commit is contained in:
parent
a5954bc83d
commit
7fac1ddc6b
@ -554,7 +554,6 @@
|
|||||||
clearTimeout(saveTimeout);
|
clearTimeout(saveTimeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Устанавливаем новый таймаут на 300 мс
|
|
||||||
saveTimeout = setTimeout(async () => {
|
saveTimeout = setTimeout(async () => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('/thresholds', {
|
const response = await fetch('/thresholds', {
|
||||||
@ -584,7 +583,7 @@
|
|||||||
toast.classList.add('show');
|
toast.classList.add('show');
|
||||||
setTimeout(() => toast.classList.remove('show'), 1600);
|
setTimeout(() => toast.classList.remove('show'), 1600);
|
||||||
}
|
}
|
||||||
}, 300);
|
}, 700);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function saveThresholds() {
|
async function saveThresholds() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user