Creating WROLModeMessage to warn users why functionality is disabled.

This commit is contained in:
Roland 2022-01-12 09:38:21 -07:00
parent 491db17fac
commit ae9737e52b
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
4 changed files with 42 additions and 4 deletions

View file

@ -1,6 +1,7 @@
import React from "react";
import {Button, Dropdown, Form, Header, Segment, TextArea} from "semantic-ui-react";
import {getDownloaders, postDownload} from "../api";
import {WROLModeMessage} from "./Common";
const validUrl = /^(http|https):\/\/[^ "]+$/;
@ -67,6 +68,7 @@ class Downloader extends React.Component {
return (
<Form onSubmit={this.submitDownload}>
<WROLModeMessage content='Downloading is disabled while WROL Mode is enabled'/>
<Header as='h4'>Enter the URLs you wish to save offline.</Header>
<Form.Field>
<TextArea