Close search modal after add actions
This commit is contained in:
@@ -747,6 +747,7 @@ INDEX_HTML = r"""<!doctype html>
|
||||
})
|
||||
});
|
||||
setNotice(data.message || "Added to watchlist.");
|
||||
closeSelectionModal();
|
||||
} catch (error) {
|
||||
setNotice(error.message);
|
||||
}
|
||||
@@ -771,6 +772,7 @@ INDEX_HTML = r"""<!doctype html>
|
||||
try {
|
||||
await api("/api/queue", { method: "POST", body: JSON.stringify(payload) });
|
||||
setNotice("Added to queue. Open Queue to monitor progress.");
|
||||
closeSelectionModal();
|
||||
} catch (error) {
|
||||
setNotice(error.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user