Skip to content
Snippets Groups Projects
Unverified Commit 8ecdc61c authored by Cam Saul's avatar Cam Saul
Browse files

humanization-strategy Setting frontend

parent 7860a623
No related branches found
No related tags found
No related merge requests found
......@@ -66,9 +66,17 @@ const SECTIONS = [
type: "boolean"
},
{
key: "enable-advanced-humanization",
key: "humanization-strategy",
display_name: t`Friendly Table and Field Names`,
type: "boolean"
type: "select",
options: [
{ value: "advanced", name: t`Enabled` },
{ value: "simple", name: t`Only replace underscores and dashes with spaces` },
{ value: "none", name: t`Disabled` }
],
// this needs to be here because 'advanced' is the default value, so if you select 'advanced' the
// widget will always show the placeholder instead of the 'name' defined above :(
placeholder: t`Enabled`
},
{
key: "enable-nested-queries",
......@@ -154,7 +162,7 @@ const SECTIONS = [
key: "metabot-enabled",
display_name: "MetaBot",
type: "boolean",
// TODO: why do we have "defaultValue" in addition to "default" in the backend?
// TODO: why do we have "defaultValue" here in addition to the "default" specified by the backend?
defaultValue: false,
required: true,
autoFocus: false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment