소스 검색

fix: disable file item click during upload

Timothy J. Baek 9 달 전
부모
커밋
42d048741c
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      src/lib/components/workspace/Knowledge/Collection/Files.svelte

+ 8 - 0
src/lib/components/workspace/Knowledge/Collection/Files.svelte

@@ -23,9 +23,17 @@
 				loading={file.status === 'uploading'}
 				dismissible
 				on:click={() => {
+					if (file.status === 'uploading') {
+						return;
+					}
+
 					dispatch('click', file.id);
 				}}
 				on:dismiss={() => {
+					if (file.status === 'uploading') {
+						return;
+					}
+
 					dispatch('delete', file.id);
 				}}
 			/>