mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 21:39:49 +00:00
clear download queue text on submit
This commit is contained in:
@@ -182,6 +182,7 @@ const Download = () => {
|
|||||||
label="Add to queue"
|
label="Add to queue"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
await updateDownloadQueue(downloadQueueText, false);
|
await updateDownloadQueue(downloadQueueText, false);
|
||||||
|
setDownloadQueueText('');
|
||||||
setRefresh(true);
|
setRefresh(true);
|
||||||
setShowHiddenForm(false);
|
setShowHiddenForm(false);
|
||||||
}}
|
}}
|
||||||
@@ -190,6 +191,7 @@ const Download = () => {
|
|||||||
label="Download now"
|
label="Download now"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
await updateDownloadQueue(downloadQueueText, true);
|
await updateDownloadQueue(downloadQueueText, true);
|
||||||
|
setDownloadQueueText('');
|
||||||
setRefresh(true);
|
setRefresh(true);
|
||||||
setShowHiddenForm(false);
|
setShowHiddenForm(false);
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user