Merge pull request #14022 from Budibase/remove-hidden-settings-in-bar

Don't show hidden settings in the settings bar
This commit is contained in:
Andrew Kingston 2024-06-26 10:51:55 +02:00 committed by GitHub
commit 24fd3bac10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 13 deletions

View File

@ -23,17 +23,21 @@
{ "type": "bigint", "message": "stringAsNumber" }, { "type": "bigint", "message": "stringAsNumber" },
{ "type": "options", "message": "stringAsNumber" }, { "type": "options", "message": "stringAsNumber" },
{ "type": "formula", "message": "stringAsNumber" }, { "type": "formula", "message": "stringAsNumber" },
{ "type": "datetime", "message": "dateAsNumber"} { "type": "datetime", "message": "dateAsNumber" }
], ],
"unsupported": [ "unsupported": [{ "type": "json", "message": "jsonPrimitivesOnly" }]
{ "type": "json", "message": "jsonPrimitivesOnly" }
]
}, },
"stringLike": { "stringLike": {
"supported": ["string", "number", "bigint", "options", "longform", "boolean", "datetime"], "supported": [
"unsupported": [ "string",
{ "type": "json", "message": "jsonPrimitivesOnly" } "number",
] "bigint",
"options",
"longform",
"boolean",
"datetime"
],
"unsupported": [{ "type": "json", "message": "jsonPrimitivesOnly" }]
}, },
"datetimeLike": { "datetimeLike": {
"supported": ["datetime"], "supported": ["datetime"],
@ -43,11 +47,9 @@
{ "type": "options", "message": "stringAsDate" }, { "type": "options", "message": "stringAsDate" },
{ "type": "formula", "message": "stringAsDate" }, { "type": "formula", "message": "stringAsDate" },
{ "type": "bigint", "message": "stringAsDate" }, { "type": "bigint", "message": "stringAsDate" },
{ "type": "number", "message": "numberAsDate"} { "type": "number", "message": "numberAsDate" }
], ],
"unsupported": [ "unsupported": [{ "type": "json", "message": "jsonPrimitivesOnly" }]
{ "type": "json", "message": "jsonPrimitivesOnly" }
]
} }
}, },
"layout": { "layout": {

View File

@ -41,7 +41,7 @@
allSettings.push(setting) allSettings.push(setting)
} }
}) })
return allSettings.filter(setting => setting.showInBar) return allSettings.filter(setting => setting.showInBar && !setting.hidden)
} }
const updatePosition = () => { const updatePosition = () => {