summaryrefslogtreecommitdiff
path: root/web/source/settings/admin/federation.js
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2022-12-02 15:56:23 +0100
committerLibravatar GitHub <noreply@github.com>2022-12-02 15:56:23 +0100
commitbb7948f31ae81542a41ce5e4239941b615b477a4 (patch)
tree79d12dd2f7ef6d3700d097c2cf70cf008c3ae532 /web/source/settings/admin/federation.js
parent[chore] Remove duplicate prefixes from sanitizer (#1195) (diff)
downloadgotosocial-bb7948f31ae81542a41ce5e4239941b615b477a4.tar.xz
[chore/frontend] remove domain block edit functionality until implemented in backend (#1199)
Diffstat (limited to 'web/source/settings/admin/federation.js')
-rw-r--r--web/source/settings/admin/federation.js21
1 files changed, 16 insertions, 5 deletions
diff --git a/web/source/settings/admin/federation.js b/web/source/settings/admin/federation.js
index 449d2156f..753024e58 100644
--- a/web/source/settings/admin/federation.js
+++ b/web/source/settings/admin/federation.js
@@ -339,28 +339,39 @@ function InstancePage({domain, Form}) {
return (
<div>
<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
id="public_comment"
name="Public comment"
+ inputProps={{
+ disabled: !entry.new
+ }}
/>
<Form.TextArea
id="private_comment"
name="Private comment"
+ inputProps={{
+ disabled: !entry.new
+ }}
/>
<Form.Checkbox
id="obfuscate"
name="Obfuscate domain? "
+ inputProps={{
+ disabled: !entry.new
+ }}
/>
<div className="messagebutton">
- <button type="submit" onClick={updateBlock}>{entry.new ? "Add block" : "Save block"}</button>
-
- {!entry.new &&
- <button className="danger" onClick={removeBlock}>Remove block</button>
+ {entry.new
+ ? <button type="submit" onClick={updateBlock}>{entry.new ? "Add block" : "Save block"}</button>
+ : <button className="danger" onClick={removeBlock}>Remove block</button>
}
{errorMsg.length > 0 &&