nits plug sleep & suspend groups

This commit is contained in:
Ruben Fiszel
2024-11-07 22:06:39 +01:00
parent 162070dcca
commit fbdeb6be09
3 changed files with 13 additions and 8 deletions
@@ -57,6 +57,7 @@
{#if flowModule.sleep && schema.properties['sleep']}
<div class="border">
<PropPickerWrapper
noFlowPlugConnect={true}
notSelectable
{result}
displayContext={false}
@@ -187,6 +187,7 @@
<div class="border">
<PropPickerWrapper
{result}
noFlowPlugConnect
displayContext={false}
pickableProperties={undefined}
on:select={({ detail }) => {
@@ -43,6 +43,7 @@
export let noPadding: boolean = false
export let alwaysOn: boolean = false
export let paneClass: string = ''
export let noFlowPlugConnect = false
const propPickerConfig: Writable<PropPickerConfig | undefined> = writable<
PropPickerConfig | undefined
@@ -67,13 +68,15 @@
}
}
propPickerConfig.set(config)
flowPropPickerConfig.set({
...config,
clearFocus: () => {
propPickerConfig.set(undefined)
flowPropPickerConfig.set(undefined)
}
})
if (!noFlowPlugConnect) {
flowPropPickerConfig.set({
...config,
clearFocus: () => {
propPickerConfig.set(undefined)
flowPropPickerConfig.set(undefined)
}
})
}
},
clearFocus: () => {
flowPropPickerConfig.set(undefined)
@@ -121,7 +124,7 @@
: 'transparent'}
animationDuration="4s"
>
{#if result}
{#if result != undefined}
<PropPickerResult
{result}
{extraResults}