Don't show row test data selector outside of test modal.
This commit is contained in:
parent
623effe27c
commit
e142d2cc81
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue