Don't show row test data selector outside of test modal.

This commit is contained in:
Sam Rose 2025-03-11 17:08:16 +00:00
parent 623effe27c
commit e142d2cc81
No known key found for this signature in database
1 changed files with 50 additions and 43 deletions

View File

@ -387,33 +387,11 @@
] ]
} }
stepLayouts[block.stepId] = { const getTestDataSelector = () => {
row: { if (!isTestModal) {
schema: schema["row"], return []
//?layout: RowLayoutStepComponent.
content: [
{
type: TableSelector,
title: "Table",
props: {
isTrigger,
value: inputData["row"]?.tableId ?? "",
onChange: e => {
const rowKey = $stepStore?.[block.id]?.rowType || "row"
onChange({
_tableId: e.detail,
meta: {},
[rowKey]: e.detail
? {
tableId: e.detail,
} }
: {}, return [{
})
},
disabled: isTestModal,
},
},
{
type: CoreSelect, type: CoreSelect,
title: "Row", title: "Row",
props: { props: {
@ -455,7 +433,36 @@
props: { props: {
noMargin: true, noMargin: true,
}, },
}]
}
stepLayouts[block.stepId] = {
row: {
schema: schema["row"],
//?layout: RowLayoutStepComponent.
content: [
{
type: TableSelector,
title: "Table",
props: {
isTrigger,
value: inputData["row"]?.tableId ?? "",
onChange: e => {
const rowKey = $stepStore?.[block.id]?.rowType || "row"
onChange({
_tableId: e.detail,
meta: {},
[rowKey]: e.detail
? {
tableId: e.detail,
}
: {},
})
}, },
disabled: isTestModal,
},
},
...getTestDataSelector(),
...getIdConfig(), ...getIdConfig(),
...getRevConfig(), ...getRevConfig(),
...getRowTypeConfig(), ...getRowTypeConfig(),