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] = {
|
||||
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,
|
||||
const getTestDataSelector = () => {
|
||||
if (!isTestModal) {
|
||||
return []
|
||||
}
|
||||
: {},
|
||||
})
|
||||
},
|
||||
disabled: isTestModal,
|
||||
},
|
||||
},
|
||||
{
|
||||
return [{
|
||||
type: CoreSelect,
|
||||
title: "Row",
|
||||
props: {
|
||||
|
@ -455,7 +433,36 @@
|
|||
props: {
|
||||
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(),
|
||||
...getRevConfig(),
|
||||
...getRowTypeConfig(),
|
||||
|
|
Loading…
Reference in New Issue