diff --git a/packages/bbui/src/Button/Button.svelte b/packages/bbui/src/Button/Button.svelte index da4d405f02..9e0a7ff52a 100644 --- a/packages/bbui/src/Button/Button.svelte +++ b/packages/bbui/src/Button/Button.svelte @@ -1,5 +1,6 @@ - + {#if showTooltip && tooltip} +
+
+ +
+
{/if} - {#if $$slots} - - {/if} - + diff --git a/packages/bbui/src/Tooltip/TooltipWrapper.svelte b/packages/bbui/src/Tooltip/TooltipWrapper.svelte index c587dec1dc..78c69942e5 100644 --- a/packages/bbui/src/Tooltip/TooltipWrapper.svelte +++ b/packages/bbui/src/Tooltip/TooltipWrapper.svelte @@ -17,6 +17,7 @@ class:icon-small={size === "M" || size === "S"} on:mouseover={() => (showTooltip = true)} on:mouseleave={() => (showTooltip = false)} + on:focus > @@ -47,7 +48,7 @@ display: flex; justify-content: center; top: 15px; - z-index: 1; + z-index: 100; width: 160px; } .icon { diff --git a/packages/builder/src/components/common/inputs/EditableLabel.svelte b/packages/builder/src/components/common/inputs/EditableLabel.svelte index ffe3c0968e..57fd2621a1 100644 --- a/packages/builder/src/components/common/inputs/EditableLabel.svelte +++ b/packages/builder/src/components/common/inputs/EditableLabel.svelte @@ -17,6 +17,10 @@ dispatch("change") } } + + function save() { + dispatch("save", value) + }
@@ -39,7 +43,10 @@ name="SaveFloppy" hoverable size="S" - on:click={() => setEditing(false)} + on:click={() => { + setEditing(false) + save() + }} /> {/if}
diff --git a/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte index 808c3a49ec..666bfdc6b5 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte @@ -59,6 +59,7 @@ $: schemaReadOnly = !responseSuccess $: variablesReadOnly = !responseSuccess $: showVariablesTab = shouldShowVariables(dynamicVariables, variablesReadOnly) + $: hasSchema = !!query?.schema function getSelectedQuery() { return cloneDeep( @@ -294,6 +295,7 @@ bind:value={query.name} defaultValue="Untitled" on:change={() => (query.flags.urlName = false)} + on:save={saveQuery} />
@@ -313,7 +315,18 @@
- + + + {#if !query.schema}{/if}
@@ -527,9 +540,6 @@ >{response?.info.size} - {/if}