Copy changes
This commit is contained in:
parent
91cce4cb0f
commit
41edc72f0f
|
@ -76,6 +76,10 @@
|
||||||
</Layout>
|
</Layout>
|
||||||
<div />
|
<div />
|
||||||
<Heading size="XS">Dynamic</Heading>
|
<Heading size="XS">Dynamic</Heading>
|
||||||
|
<Body size="S">
|
||||||
|
Dynamic variables are evaluated when a dependant query is executed. The value
|
||||||
|
is cached for 24 hours and will re-evaluate if the dependendent query fails.
|
||||||
|
</Body>
|
||||||
<ViewDynamicVariables {queries} {datasource} />
|
<ViewDynamicVariables {queries} {datasource} />
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
export let keyPlaceholder = "Key"
|
export let keyPlaceholder = "Key"
|
||||||
export let valuePlaceholder = "Value"
|
export let valuePlaceholder = "Value"
|
||||||
export let valueHeading
|
export let valueHeading
|
||||||
|
export let keyHeading
|
||||||
export let tooltip
|
export let tooltip
|
||||||
export let menuItems
|
export let menuItems
|
||||||
export let showMenu = false
|
export let showMenu = false
|
||||||
|
@ -81,7 +82,7 @@
|
||||||
{#if Object.keys(object || {}).length > 0}
|
{#if Object.keys(object || {}).length > 0}
|
||||||
{#if headings}
|
{#if headings}
|
||||||
<div class="container" class:container-active={toggle}>
|
<div class="container" class:container-active={toggle}>
|
||||||
<Label {tooltip}>{keyPlaceholder}</Label>
|
<Label {tooltip}>{keyHeading || keyPlaceholder}</Label>
|
||||||
<Label>{valueHeading || valuePlaceholder}</Label>
|
<Label>{valueHeading || valuePlaceholder}</Label>
|
||||||
{#if toggle}
|
{#if toggle}
|
||||||
<Label>Active</Label>
|
<Label>Active</Label>
|
||||||
|
|
|
@ -447,9 +447,10 @@
|
||||||
bind:object={dynamicVariables}
|
bind:object={dynamicVariables}
|
||||||
name="Variable"
|
name="Variable"
|
||||||
headings
|
headings
|
||||||
keyPlaceholder="Name"
|
keyHeading="Name"
|
||||||
valuePlaceholder={`e.g. {{ headers.cookie }}`}
|
keyPlaceholder="e.g. cookie"
|
||||||
valueHeading={`Value`}
|
valueHeading={`Value`}
|
||||||
|
valuePlaceholder={`e.g. {{ headers.set-cookie }}`}
|
||||||
readOnly={variablesReadOnly}
|
readOnly={variablesReadOnly}
|
||||||
/>
|
/>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
Loading…
Reference in New Issue