File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
src/codeblocks/ui/componets/Table Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1010 const { text, onClick, disabled = false }: Props = $props ();
1111 </script >
1212
13- <tr class ="add-row" class:disabled ={ disabled } >
13+ <tr class =" add-row" class:disabled >
1414 <td colspan ="4" onclick ={() => (disabled ? undefined : onClick ())}>
1515 <div class =" button" >
1616 <Icon name =" circle-plus" />
Original file line number Diff line number Diff line change 7474 type ={valueType }
7575 min ={valueType === ' number' ? ' 0' : undefined }
7676 step ={valueType === ' number' ? ' 0.10' : undefined }
77- disabled = {disabled }
77+ {disabled }
7878 onblur ={handleOnLeave }
7979 onwheel ={handleOnWheel }
8080 onkeydown ={handleOnInputKeyDown }
Original file line number Diff line number Diff line change 3232 (categories : TableCategories , rows : TableRows ) => {
3333 if ($tableStateStore .isEditing ) return ;
3434
35- // Block interactions while saving
3635 tableStateStore .update ((s ) => ({ ... s , isSaving: true }));
3736 try {
3837 onTableChange (categories , rows );
3938 } finally {
40- // Release saving lock on next tick to allow CM dispatch to finish
4139 setTimeout (() => tableStateStore .update ((s ) => ({ ... s , isSaving: false })), 0 );
4240 }
4341 },
8381 <Row {row } />
8482 {/each }
8583
86- <AddRow text ="New Row" onClick ={() => newRow (categoryId )} disabled ={$tableStateStore .isSaving } />
84+ <AddRow
85+ text =" New Row"
86+ onClick ={() => newRow (categoryId )}
87+ disabled ={$tableStateStore .isSaving }
88+ />
8789
8890 {#if $tableStore .categories .size > 1 }
8991 <CategoryFooter {categoryId } />
You can’t perform that action at this time.
0 commit comments