Close search modal after add actions
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 0.51.9 - 2026-08-09
|
||||||
|
|
||||||
|
- Closed the Search result floating window after successful Add to queue or Add to watchlist actions.
|
||||||
|
|
||||||
## 0.51.8 - 2026-08-09
|
## 0.51.8 - 2026-08-09
|
||||||
|
|
||||||
- Added structured Kaizoku downloader progress events for episode starts, provider resolution, segment downloads, remuxing, and completion.
|
- Added structured Kaizoku downloader progress events for episode starts, provider resolution, segment downloads, remuxing, and completion.
|
||||||
|
|||||||
@@ -747,6 +747,7 @@ INDEX_HTML = r"""<!doctype html>
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
setNotice(data.message || "Added to watchlist.");
|
setNotice(data.message || "Added to watchlist.");
|
||||||
|
closeSelectionModal();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setNotice(error.message);
|
setNotice(error.message);
|
||||||
}
|
}
|
||||||
@@ -771,6 +772,7 @@ INDEX_HTML = r"""<!doctype html>
|
|||||||
try {
|
try {
|
||||||
await api("/api/queue", { method: "POST", body: JSON.stringify(payload) });
|
await api("/api/queue", { method: "POST", body: JSON.stringify(payload) });
|
||||||
setNotice("Added to queue. Open Queue to monitor progress.");
|
setNotice("Added to queue. Open Queue to monitor progress.");
|
||||||
|
closeSelectionModal();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setNotice(error.message);
|
setNotice(error.message);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4130,6 +4130,10 @@ class TemplateHelperTests(unittest.TestCase):
|
|||||||
def test_search_page_sends_watchlist_auto_download_series(self):
|
def test_search_page_sends_watchlist_auto_download_series(self):
|
||||||
self.assertIn('auto_download_series: $("seasonInput").value || "1"', APP.INDEX_HTML)
|
self.assertIn('auto_download_series: $("seasonInput").value || "1"', APP.INDEX_HTML)
|
||||||
|
|
||||||
|
def test_search_page_closes_selection_modal_after_successful_actions(self):
|
||||||
|
self.assertIn('setNotice(data.message || "Added to watchlist.");\n closeSelectionModal();', APP.INDEX_HTML)
|
||||||
|
self.assertIn('setNotice("Added to queue. Open Queue to monitor progress.");\n closeSelectionModal();', APP.INDEX_HTML)
|
||||||
|
|
||||||
def test_queue_page_includes_clear_failed_bulk_action(self):
|
def test_queue_page_includes_clear_failed_bulk_action(self):
|
||||||
self.assertIn('id="clearFailedBtn"', APP.QUEUE_HTML)
|
self.assertIn('id="clearFailedBtn"', APP.QUEUE_HTML)
|
||||||
self.assertIn('/api/queue/clear-failed', APP.QUEUE_HTML)
|
self.assertIn('/api/queue/clear-failed', APP.QUEUE_HTML)
|
||||||
|
|||||||
Reference in New Issue
Block a user