mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-31 19:15:17 +02:00
fix workflow editor menu
This commit is contained in:
parent
7688dfbf70
commit
a9d32ea423
1 changed files with 4 additions and 8 deletions
|
|
@ -526,7 +526,7 @@ function reducer(state: State, action: Action): State {
|
||||||
const existingToolIndex = draft.workflow.tools.findIndex(
|
const existingToolIndex = draft.workflow.tools.findIndex(
|
||||||
tool => tool.name === newTool.name
|
tool => tool.name === newTool.name
|
||||||
);
|
);
|
||||||
|
|
||||||
if (existingToolIndex !== -1) {
|
if (existingToolIndex !== -1) {
|
||||||
// Replace existing tool
|
// Replace existing tool
|
||||||
draft.workflow.tools[existingToolIndex] = newTool;
|
draft.workflow.tools[existingToolIndex] = newTool;
|
||||||
|
|
@ -803,9 +803,7 @@ export function WorkflowEditor({
|
||||||
View versions
|
View versions
|
||||||
</DropdownItem>
|
</DropdownItem>
|
||||||
</DropdownSection>
|
</DropdownSection>
|
||||||
|
|
||||||
<div className="border-t border-gray-200 dark:border-gray-700" />
|
|
||||||
|
|
||||||
<DropdownSection>
|
<DropdownSection>
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
key="clone"
|
key="clone"
|
||||||
|
|
@ -814,7 +812,7 @@ export function WorkflowEditor({
|
||||||
>
|
>
|
||||||
Clone this version
|
Clone this version
|
||||||
</DropdownItem>
|
</DropdownItem>
|
||||||
|
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
key="publish"
|
key="publish"
|
||||||
startContent={<div className="text-indigo-500"><RadioIcon size={16} /></div>}
|
startContent={<div className="text-indigo-500"><RadioIcon size={16} /></div>}
|
||||||
|
|
@ -823,9 +821,7 @@ export function WorkflowEditor({
|
||||||
Make version live
|
Make version live
|
||||||
</DropdownItem>
|
</DropdownItem>
|
||||||
</DropdownSection>
|
</DropdownSection>
|
||||||
|
|
||||||
<div className="border-t border-gray-200 dark:border-gray-700" />
|
|
||||||
|
|
||||||
<DropdownSection>
|
<DropdownSection>
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
key="clipboard"
|
key="clipboard"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue