Files
wekan/client/components/rules/ruleVariablePicker.jade
T
Lauri Ojansivu 0bc06c801b Pick rule variables from a list instead of typing them.
The trigger and action editors have an "Insert variable" list with the
card's people, card, list and board names and one {customField:Name} per
custom field of the board. Picking one inserts it at the caret of the text
field last focused. Admin-only fields are not offered, since rules do not
read them, and neither is a name the token syntax cannot spell.

Thanks to chessboards and xet7 !

Fixes #3195.
2026-09-29 18:45:10 +03:00

10 lines
362 B
Plaintext

//- #3195: insert a rule variable into the text field last focused in this
editor, so {customField:Name} and the people tokens need not be typed.
template(name="ruleVariablePicker")
label.rule-variable-picker
span {{_ 'r-insert-variable'}}
select.js-rule-variable-picker
option(value="") -
each tokens
option(value=this) {{this}}