From af79332898f573d3a5194e23075d8637656b60d0 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Thu, 2 Jan 2025 14:49:51 +0100 Subject: [PATCH] TEMPORARY, breaking(pat-depends): Change default to show + enable behavior. Note: if this is in the main tree of this repo, then this temporary feature slipped in. Anyways, I think we should always show/hide and enable/disable at the same time. Before action mode "show" was the default and "enable" behavior was used. Now we change the visibilit and the endabled/disabled state of inputs per default. --- src/pat/depends/depends.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pat/depends/depends.js b/src/pat/depends/depends.js index 1030b885b..8a25a691d 100644 --- a/src/pat/depends/depends.js +++ b/src/pat/depends/depends.js @@ -10,7 +10,7 @@ const log = logging.getLogger("depends"); export const parser = new Parser("depends"); parser.addArgument("condition"); -parser.addArgument("action", "show", ["show", "enable", "both"]); +parser.addArgument("action", "both", ["show", "enable", "both"]); parser.addArgument("transition", "none", ["none", "css", "fade", "slide"]); parser.addArgument("effect-duration", "fast"); parser.addArgument("effect-easing", "swing");