From e03bf32358ea7f1170786c1b79d6a94a6c033dcf Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sun, 14 Mar 2021 17:36:43 +0000 Subject: [PATCH] Show success alerts on the download page --- public/js/download.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/js/download.js b/public/js/download.js index 957767d..31a803e 100644 --- a/public/js/download.js +++ b/public/js/download.js @@ -260,9 +260,7 @@ const downloadComponent = () => { } const successCount = parseInt(data.success); const failCount = parseInt(data.fail); - UIkit.modal.confirm(`${successCount} of ${successCount + failCount} chapters added to the download queue. Proceed to the download manager?`).then(() => { - window.location.href = base_url + 'admin/downloads'; - }); + alert('success', `${successCount} of ${successCount + failCount} chapters added to the download queue. You can view and manage your download queue on the download manager page.`); }) .fail((jqXHR, status) => { alert('danger', `Failed to add chapters to the download queue. Error: [${jqXHR.status}] ${jqXHR.statusText}`); @@ -370,6 +368,7 @@ const downloadComponent = () => { alert('danger', `Failed to subscribe. Error: ${data.error}`); return; } + alert('success', `You've successfully subscribed to this manga! You can view and manage your subscriptions on the subscription manager page.`); }) .fail((jqXHR, status) => { alert('danger', `Failed to subscribe. Error: [${jqXHR.status}] ${jqXHR.statusText}`);