From b0bfb3e60698deab9b6e68f7c37db70384d4bcf2 Mon Sep 17 00:00:00 2001 From: TaurusXin Date: Sat, 1 Feb 2025 13:43:44 +0800 Subject: [PATCH] feat: prevent click when processing --- frontend/src/App.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 6e412a9..a8e7043 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -146,6 +146,9 @@ export const App = () => { } const selectFiles = () => { + if (isProcessing) { + return + } SelectFiles().then(files => { for (const file of files) { setItems(prev => [...prev, { file, status: 'pending' }]) @@ -234,7 +237,14 @@ export const App = () => { -