mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-24 00:00:46 +00:00
convert from static to expr automatically on toggle
This commit is contained in:
@@ -89,15 +89,8 @@
|
||||
class="h-7"
|
||||
bind:selected={componentInput.type}
|
||||
on:selected={(e) => {
|
||||
if (e.detail == 'connected' && !componentInput['connection']) {
|
||||
$connectingInput = {
|
||||
opened: true,
|
||||
input: undefined,
|
||||
hoveredComponent: undefined,
|
||||
onConnect: applyConnection
|
||||
}
|
||||
} else if (
|
||||
e.detail == 'eval' &&
|
||||
if (
|
||||
e.detail == 'evalv2' &&
|
||||
componentInput['value'] != undefined &&
|
||||
(componentInput['expr'] == '' || componentInput['expr'] == undefined)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user