Copy changes

This commit is contained in:
Rory Powell 2021-12-15 14:37:03 +00:00
parent f499320b47
commit 3833b5fb75
3 changed files with 9 additions and 3 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>