Skip to content

Commit f3f33ad

Browse files
committed
Implement a 10-second timeout to automatically re-enable the commit button after submission
1 parent f42282d commit f3f33ad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • packages/vscode/src/views/panel/frontend/Main/MainView

‎packages/vscode/src/views/panel/frontend/Main/MainView/MainView.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ export const MainView: React.FC<Props> = (props) => {
199199

200200
set_is_commit_disabled_temporarily(true)
201201
props.on_commit_click()
202+
203+
setTimeout(() => set_is_commit_disabled_temporarily(false), 10000)
202204
}
203205

204206
const handle_heading_click = () => {

0 commit comments

Comments
 (0)