mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 03:40:14 +00:00
Switch to TA error notification
This commit is contained in:
parent
a5c50fd690
commit
66c2799e7e
@ -106,7 +106,14 @@ const Download: NextPage = () => {
|
|||||||
<div className="title-bar">
|
<div className="title-bar">
|
||||||
<h1>Downloads</h1>
|
<h1>Downloads</h1>
|
||||||
</div>
|
</div>
|
||||||
<div id="notifications"></div>
|
{errorMessage &&
|
||||||
|
<div id="notifications">
|
||||||
|
<div className="error notification">
|
||||||
|
<h3>Failed to extract links.</h3>
|
||||||
|
<p>Not a video, channel or playlist ID or URL</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
<div id="downloadControl"></div>
|
<div id="downloadControl"></div>
|
||||||
<div className="info-box info-box-3">
|
<div className="info-box info-box-3">
|
||||||
<div className="icon-text">
|
<div className="icon-text">
|
||||||
@ -147,9 +154,6 @@ const Download: NextPage = () => {
|
|||||||
<div className="show-form">
|
<div className="show-form">
|
||||||
<form id="hidden-form" onSubmit={addToDownloadQueue}>
|
<form id="hidden-form" onSubmit={addToDownloadQueue}>
|
||||||
<textarea name="vid_url" cols={40} rows={4} placeholder="Enter Video Urls or IDs here..." required id="id_vid_url" spellCheck="false" />
|
<textarea name="vid_url" cols={40} rows={4} placeholder="Enter Video Urls or IDs here..." required id="id_vid_url" spellCheck="false" />
|
||||||
{errorMessage &&
|
|
||||||
<p><span className="danger-zone">Invalid input!</span></p>
|
|
||||||
}
|
|
||||||
<button type="submit">Add to download queue</button>
|
<button type="submit">Add to download queue</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user