{
setTopicUrl(props.topicUrl);
setShowTopicUrl(false);
}}>
@@ -118,6 +142,7 @@ const SendDialog = (props) => {
label="Topic URL"
value={topicUrl}
onChange={ev => setTopicUrl(ev.target.value)}
+ disabled={disabled}
type="text"
variant="standard"
fullWidth
@@ -130,6 +155,7 @@ const SendDialog = (props) => {
label="Title"
value={title}
onChange={ev => setTitle(ev.target.value)}
+ disabled={disabled}
type="text"
fullWidth
variant="standard"
@@ -141,6 +167,7 @@ const SendDialog = (props) => {
placeholder="Type the main message body here."
value={message}
onChange={ev => setMessage(ev.target.value)}
+ disabled={disabled}
type="text"
variant="standard"
rows={5}
@@ -149,13 +176,14 @@ const SendDialog = (props) => {
multiline
/>
- null}>
+ null}>
setTags(ev.target.value)}
+ disabled={disabled}
type="text"
variant="standard"
sx={{flexGrow: 1, marginRight: 1}}
@@ -171,6 +199,7 @@ const SendDialog = (props) => {
margin="dense"
value={priority}
onChange={(ev) => setPriority(ev.target.value)}
+ disabled={disabled}
>
{[5,4,3,2,1].map(priority =>
{showClickUrl &&
- {
+ {
setClickUrl("");
setShowClickUrl(false);
}}>
@@ -194,6 +223,7 @@ const SendDialog = (props) => {
placeholder="URL that is opened when notification is clicked"
value={clickUrl}
onChange={ev => setClickUrl(ev.target.value)}
+ disabled={disabled}
type="url"
fullWidth
variant="standard"
@@ -201,7 +231,7 @@ const SendDialog = (props) => {
}
{showEmail &&
- {
+ {
setEmail("");
setShowEmail(false);
}}>
@@ -211,6 +241,7 @@ const SendDialog = (props) => {
placeholder="Address to forward the message to, e.g. phil@example.com"
value={email}
onChange={ev => setEmail(ev.target.value)}
+ disabled={disabled}
type="email"
variant="standard"
fullWidth
@@ -218,7 +249,7 @@ const SendDialog = (props) => {
}
{showAttachUrl &&
- {
+ {
setAttachUrl("");
setFilename("");
setFilenameEdited(false);
@@ -244,6 +275,7 @@ const SendDialog = (props) => {
}
}
}}
+ disabled={disabled}
type="url"
variant="standard"
sx={{flexGrow: 5, marginRight: 1}}
@@ -257,6 +289,7 @@ const SendDialog = (props) => {
setFilename(ev.target.value);
setFilenameEdited(true);
}}
+ disabled={disabled}
type="text"
variant="standard"
sx={{flexGrow: 1}}
@@ -272,6 +305,7 @@ const SendDialog = (props) => {
{showAttachFile && setFilename(f)}
onClose={() => {
setAttachFile(null);
@@ -279,7 +313,7 @@ const SendDialog = (props) => {
}}
/>}
{showDelay &&
- {
+ {
setDelay("");
setShowDelay(false);
}}>
@@ -289,6 +323,7 @@ const SendDialog = (props) => {
placeholder="Unix timestamp, duration or English natural language"
value={delay}
onChange={ev => setDelay(ev.target.value)}
+ disabled={disabled}
type="text"
variant="standard"
fullWidth
@@ -299,21 +334,26 @@ const SendDialog = (props) => {
Other features:
- {!showClickUrl && setShowClickUrl(true)} sx={{marginRight: 1}}/>}
- {!showEmail && setShowEmail(true)} sx={{marginRight: 1}}/>}
- {!showAttachUrl && !showAttachFile && setShowAttachUrl(true)} sx={{marginRight: 1}}/>}
- {!showAttachFile && !showAttachUrl && handleAttachFileClick()} sx={{marginRight: 1}}/>}
- {!showDelay && setShowDelay(true)} sx={{marginRight: 1}}/>}
- {!showTopicUrl && setShowTopicUrl(true)} sx={{marginRight: 1}}/>}
+ {!showClickUrl && setShowClickUrl(true)} sx={{marginRight: 1, marginBottom: 1}}/>}
+ {!showEmail && setShowEmail(true)} sx={{marginRight: 1, marginBottom: 1}}/>}
+ {!showAttachUrl && !showAttachFile && setShowAttachUrl(true)} sx={{marginRight: 1, marginBottom: 1}}/>}
+ {!showAttachFile && !showAttachUrl && handleAttachFileClick()} sx={{marginRight: 1, marginBottom: 1}}/>}
+ {!showDelay && setShowDelay(true)} sx={{marginRight: 1, marginBottom: 1}}/>}
+ {!showTopicUrl && setShowTopicUrl(true)} sx={{marginRight: 1, marginBottom: 1}}/>}
-
+
For examples and a detailed description of all send features, please
refer to the documentation.