File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 33
44# Unreleased
55
6+ * Added confirmation dialog for delete task operation (\# 272).
67* Enabled task info tab and rendered docs info from markdown (\# 271).
78* Update import-workflow feature (\# 269).
89* Revamp home page and user-related layout (\# 259).
Original file line number Diff line number Diff line change 99 import TaskInfoModal from ' $lib/components/tasks/TaskInfoModal.svelte' ;
1010 import TaskCollection from ' $lib/components/tasks/TaskCollection.svelte' ;
1111 import StandardErrorAlert from ' $lib/components/common/StandardErrorAlert.svelte' ;
12+ import ConfirmActionButton from ' $lib/components/common/ConfirmActionButton.svelte' ;
1213
1314 // Error property to be set in order to show errors in UI
1415 let errorReasons = undefined ;
242243 <i class =" bi bi-pencil" />
243244 Edit
244245 </button >
245- <button class ="btn btn-danger" on:click ={() => handleDeleteTask (task .id )}>
246- <i class =" bi bi-trash" />
247- Delete
248- </button >
246+ <ConfirmActionButton
247+ modalId ="confirmTaskDeleteModal {task .id }"
248+ style ={' danger' }
249+ btnStyle =" danger"
250+ buttonIcon =" trash"
251+ label ={' Delete' }
252+ message ={` Delete task ${task .name } ` }
253+ callbackAction ={() => handleDeleteTask (task .id )}
254+ />
249255 </td >
250256 </tr >
251257 {/each }
You can’t perform that action at this time.
0 commit comments