Skip to content

Commit 6c96619

Browse files
committed
Add add to variable action
1 parent 339b0df commit 6c96619

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/actions/AddToVariable.ts

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import {renderValue} from "~/value";
2+
import {renderActionHeader} from "~/render";
3+
import {SetVariableParameters} from "~/actions/set-variable";
4+
import {actions, actionText} from "~/actions";
5+
6+
export default {
7+
title: "Add",
8+
icon: "f_cursive",
9+
background: "#fc880f",
10+
render: (container: HTMLElement, params: SetVariableParameters) => {
11+
return renderActionHeader(actions['appendvariable'],
12+
renderValue(params['WFInput'], 'Input'),
13+
actionText('to'),
14+
renderValue(params['WFVariableName'], 'Variable Name'));
15+
}
16+
}

0 commit comments

Comments
 (0)