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:
commit
24fd3bac10
|
@ -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": {
|
||||||
|
|
|
@ -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 = () => {
|
||||||
|
|
Loading…
Reference in New Issue