Skip to content

Commit

Permalink
[F] Add Akismet key input
Browse files Browse the repository at this point in the history
  • Loading branch information
1aurend committed Feb 23, 2024
1 parent c0d6fa9 commit 6fb61f8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
17 changes: 17 additions & 0 deletions client/src/backend/containers/settings/Properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,14 @@ export class SettingsPropertiesContainer extends PureComponent {
)}
name="attributes[general][disableEngagement]"
/>
<Form.Switch
wide
label={t("settings.properties.reading_groups_label")}
instructions={t(
"settings.properties.reading_groups_instructions"
)}
name="attributes[general][disableReadingGroups]"
/>
<Form.Switch
wide
label={t("settings.properties.public_reading_groups_label")}
Expand All @@ -225,6 +233,15 @@ export class SettingsPropertiesContainer extends PureComponent {
)}
name="attributes[general][disableSpamDetection]"
/>
{getModelValue(
"attributes[general][disableSpamDetection]"
) === false && (
<Form.TextInput
password
label={t("settings.properties.akismet_key_label")}
name="attributes[secrets]akismetAPIKey"
/>
)}
</Form.FieldGroup>
<Form.Save text={t("settings.save")} />
</>
Expand Down
7 changes: 4 additions & 3 deletions client/src/config/app/locale/en-US/json/backend/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@
"home_redirect_instructions": "If set, this URL will be used instead of the Library Page Redirect URL for requests to the Manifold home page.",
"public_comments_label": "Disable Public Annotations and Comments",
"public_comments_instructions": "When on, this setting will prevent users from commenting or annotating publicly. All reading groups will behave as private reading groups.",
"reading_groups_label": "Disable Reading Groups",
"reading_groups_label": "Disable All Reading Groups",
"reading_groups_instructions": "When on, this setting will prevent users from creating or joining reading groups.",
"public_reading_groups_label": "Disable Public Reading Groups",
"public_reading_groups_instructions": "When on, this setting will prevent users from creating public reading groups.",
"public_reading_groups_instructions": "When on, this setting will prevent users from creating public reading groups. Members of existing public reading groups will still see those groups in their reading group lists.",
"spam_detection_label": "Disable Spam Detection",
"spam_detection_instructions": "Do not use Akisment for spam detection and blocking."
"spam_detection_instructions": "Do not use Akisment for spam detection and blocking.",
"akismet_key_label": "Akismet API Key"
},
"theme": {
"header": "Theme Settings",
Expand Down

0 comments on commit 6fb61f8

Please sign in to comment.