Fixing issue discovered by cypress test case and updating dynamic variable view to hide table when there are none.
This commit is contained in:
parent
18ff7a9cfb
commit
e32869b100
|
@ -36,16 +36,19 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Table
|
{#if dynamicVariables.length > 0}
|
||||||
on:click={({ detail }) => onClick(detail)}
|
<Table
|
||||||
schema={dynamicVariableSchema}
|
on:click={({ detail }) => onClick(detail)}
|
||||||
data={dynamicVariables}
|
schema={dynamicVariableSchema}
|
||||||
allowEditColumns={false}
|
data={dynamicVariables}
|
||||||
allowEditRows={false}
|
allowEditColumns={false}
|
||||||
allowSelectRows={false}
|
allowEditRows={false}
|
||||||
customRenderers={[
|
allowSelectRows={false}
|
||||||
{ column: "name", component: BoldRenderer },
|
customRenderers={[
|
||||||
{ column: "value", component: CodeRenderer },
|
{ column: "name", component: BoldRenderer },
|
||||||
]}
|
{ column: "value", component: CodeRenderer },
|
||||||
/>
|
]}
|
||||||
<Body size="S" />
|
/>
|
||||||
|
{:else}
|
||||||
|
<Body size="S"><i>No dynamic variables specified.</i></Body>
|
||||||
|
{/if}
|
||||||
|
|
|
@ -123,7 +123,7 @@
|
||||||
rows,
|
rows,
|
||||||
info,
|
info,
|
||||||
schema,
|
schema,
|
||||||
rowsLength: rows.length,
|
rowsLength: rows?.length,
|
||||||
|
|
||||||
// Undocumented properties. These aren't supposed to be used in builder
|
// Undocumented properties. These aren't supposed to be used in builder
|
||||||
// bindings, but are used internally by other components
|
// bindings, but are used internally by other components
|
||||||
|
|
Loading…
Reference in New Issue