[chore/frontend] remove domain block edit functionality until implemented in backend (#1199)
This commit is contained in:
parent
558b448ab2
commit
bb7948f31a
|
@ -339,28 +339,39 @@ function InstancePage({domain, Form}) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h1><BackButton to={base}/> Federation settings for: {domain}</h1>
|
<h1><BackButton to={base}/> Federation settings for: {domain}</h1>
|
||||||
{entry.new && "No stored block yet, you can add one below:"}
|
{entry.new
|
||||||
|
? "No stored block yet, you can add one below:"
|
||||||
|
: <b className="error">Editing domain blocks is not implemented yet, <a href="https://github.com/superseriousbusiness/gotosocial/issues/1198" target="_blank" rel="noopener noreferrer">check here for progress</a>.</b>
|
||||||
|
}
|
||||||
|
|
||||||
<Form.TextArea
|
<Form.TextArea
|
||||||
id="public_comment"
|
id="public_comment"
|
||||||
name="Public comment"
|
name="Public comment"
|
||||||
|
inputProps={{
|
||||||
|
disabled: !entry.new
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Form.TextArea
|
<Form.TextArea
|
||||||
id="private_comment"
|
id="private_comment"
|
||||||
name="Private comment"
|
name="Private comment"
|
||||||
|
inputProps={{
|
||||||
|
disabled: !entry.new
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Form.Checkbox
|
<Form.Checkbox
|
||||||
id="obfuscate"
|
id="obfuscate"
|
||||||
name="Obfuscate domain? "
|
name="Obfuscate domain? "
|
||||||
|
inputProps={{
|
||||||
|
disabled: !entry.new
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="messagebutton">
|
<div className="messagebutton">
|
||||||
<button type="submit" onClick={updateBlock}>{entry.new ? "Add block" : "Save block"}</button>
|
{entry.new
|
||||||
|
? <button type="submit" onClick={updateBlock}>{entry.new ? "Add block" : "Save block"}</button>
|
||||||
{!entry.new &&
|
: <button className="danger" onClick={removeBlock}>Remove block</button>
|
||||||
<button className="danger" onClick={removeBlock}>Remove block</button>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
{errorMsg.length > 0 &&
|
{errorMsg.length > 0 &&
|
||||||
|
|
Loading…
Reference in New Issue