Copy changes
This commit is contained in:
parent
f499320b47
commit
3833b5fb75
|
@ -76,6 +76,10 @@
|
|||
</Layout>
|
||||
<div />
|
||||
<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} />
|
||||
|
||||
<style>
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
export let keyPlaceholder = "Key"
|
||||
export let valuePlaceholder = "Value"
|
||||
export let valueHeading
|
||||
export let keyHeading
|
||||
export let tooltip
|
||||
export let menuItems
|
||||
export let showMenu = false
|
||||
|
@ -81,7 +82,7 @@
|
|||
{#if Object.keys(object || {}).length > 0}
|
||||
{#if headings}
|
||||
<div class="container" class:container-active={toggle}>
|
||||
<Label {tooltip}>{keyPlaceholder}</Label>
|
||||
<Label {tooltip}>{keyHeading || keyPlaceholder}</Label>
|
||||
<Label>{valueHeading || valuePlaceholder}</Label>
|
||||
{#if toggle}
|
||||
<Label>Active</Label>
|
||||
|
|
|
@ -447,9 +447,10 @@
|
|||
bind:object={dynamicVariables}
|
||||
name="Variable"
|
||||
headings
|
||||
keyPlaceholder="Name"
|
||||
valuePlaceholder={`e.g. {{ headers.cookie }}`}
|
||||
keyHeading="Name"
|
||||
keyPlaceholder="e.g. cookie"
|
||||
valueHeading={`Value`}
|
||||
valuePlaceholder={`e.g. {{ headers.set-cookie }}`}
|
||||
readOnly={variablesReadOnly}
|
||||
/>
|
||||
</Layout>
|
||||
|
|
Loading…
Reference in New Issue