diff --git a/src/actions/AddToVariable.ts b/src/actions/AddToVariable.ts new file mode 100644 index 0000000..f599704 --- /dev/null +++ b/src/actions/AddToVariable.ts @@ -0,0 +1,16 @@ +import {renderValue} from "~/value"; +import {renderActionHeader} from "~/render"; +import {SetVariableParameters} from "~/actions/set-variable"; +import {actions, actionText} from "~/actions"; + +export default { + title: "Add", + icon: "f_cursive", + background: "#fc880f", + render: (container: HTMLElement, params: SetVariableParameters) => { + return renderActionHeader(actions['appendvariable'], + renderValue(params['WFInput'], 'Input'), + actionText('to'), + renderValue(params['WFVariableName'], 'Variable Name')); + } +}