Skip to content

Commit 782a57a

Browse files
committed
Model commit area as form
1 parent 2f97d41 commit 782a57a

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

apps/lite/ui/src/routes/project/$id/workspace/OutlinePanel.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,13 @@ const Changes: FC<{
11431143
operand={operand}
11441144
aria-label={`Changes (${worktreeChanges?.changes.length ?? 0})`}
11451145
className={classes(workspaceItemRowStyles.section, styles.changesSection)}
1146-
render={<OperandC projectId={projectId} operand={operand} />}
1146+
render={
1147+
<OperandC
1148+
projectId={projectId}
1149+
operand={operand}
1150+
render={<form action={commitCommand.commandFn} />}
1151+
/>
1152+
}
11471153
>
11481154
<ChangesSectionRow changes={worktreeChanges?.changes ?? []} projectId={projectId} />
11491155

@@ -1192,7 +1198,7 @@ const Changes: FC<{
11921198
<ShortcutButton
11931199
hotkeys={commitCommand.hotkeys}
11941200
className={classes(uiStyles.button, styles.changesSectionCommitButton)}
1195-
onClick={commitCommand.commandFn}
1201+
type="submit"
11961202
disabled={outlineMode._tag !== "Default" || !branch}
11971203
>
11981204
Commit

0 commit comments

Comments
 (0)