mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 08:02:26 +00:00
fix: allow running scripts in json view
This commit is contained in:
@@ -229,7 +229,7 @@
|
||||
{#if topButton}
|
||||
<Button
|
||||
btnClasses="!px-6 !py-1 w-full"
|
||||
disabled={!isValid || jsonView}
|
||||
disabled={!isValid && !jsonView}
|
||||
on:click={() => runAction(undefined, args ?? {}, invisible_to_owner, overrideTag)}
|
||||
>
|
||||
{buttonText}
|
||||
@@ -282,7 +282,7 @@
|
||||
{loading}
|
||||
color="dark"
|
||||
btnClasses="!px-6 !py-1 !h-8 inline-flex gap-2"
|
||||
disabled={!isValid || jsonView}
|
||||
disabled={!isValid && !jsonView}
|
||||
on:click={() => runAction(scheduledForStr, args ?? {}, invisible_to_owner, overrideTag)}
|
||||
shortCut={{ Icon: CornerDownLeft, hide: !viewKeybinding }}
|
||||
>
|
||||
@@ -320,7 +320,7 @@
|
||||
{:else if !topButton}
|
||||
<Button
|
||||
btnClasses="!px-6 !py-1 w-full"
|
||||
disabled={!isValid || jsonView}
|
||||
disabled={!isValid && !jsonView}
|
||||
on:click={() => runAction(undefined, args ?? {}, invisible_to_owner, overrideTag)}
|
||||
shortCut={{ Icon: CornerDownLeft, hide: !viewKeybinding }}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user