clear download queue text on submit

This commit is contained in:
Simon 2025-01-30 20:29:28 +07:00
parent 937ff5c92c
commit 2a331f855c
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,7 @@ const Download = () => {
label="Add to queue"
onClick={async () => {
await updateDownloadQueue(downloadQueueText, false);
setDownloadQueueText('');
setRefresh(true);
setShowHiddenForm(false);
}}
@ -190,6 +191,7 @@ const Download = () => {
label="Download now"
onClick={async () => {
await updateDownloadQueue(downloadQueueText, true);
setDownloadQueueText('');
setRefresh(true);
setShowHiddenForm(false);
}}