Skip to content

Commit

Permalink
Add add to variable action
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikmilk committed Oct 30, 2024
1 parent 339b0df commit 6c96619
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/actions/AddToVariable.ts
Original file line number Diff line number Diff line change
@@ -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'));
}
}

0 comments on commit 6c96619

Please sign in to comment.