This commit is contained in:
2026-05-01 02:02:36 +03:00
parent b4e4a51ae5
commit 9d5d840898
3 changed files with 20 additions and 6 deletions

View File

@@ -972,6 +972,13 @@ async function prioritizeManga(url) {
}
async function stopManga(url) {
// Немедленно обновляем UI, не дожидаясь WS-события
if(state.mangas[url]) {
state.mangas[url].status = 'stopped';
state.mangas[url].is_active = false;
renderList();
loadStats();
}
await fetch('/api/mangas/stop?url='+encodeURIComponent(url), {method:'POST'});
}