Skip to content

Commit e76dc71

Browse files
committed
refactor(content_management): replace delete functionality with archive
- Change icon from delete to archive - Update tooltip to 'Archive' (temporary solution) - Replace DeleteSourceRequested event with ArchiveSourceRequested event This change improves the user experience by implementing a reversible action instead of permanent deletion.
1 parent 1013dc5 commit e76dc71

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/content_management/view/sources_page.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,12 @@ class _SourcesDataSource extends DataTableSource {
173173
},
174174
),
175175
IconButton(
176-
icon: const Icon(Icons.delete),
176+
icon: const Icon(Icons.archive),
177+
tooltip: 'Archive', // TODO(you): Will be fixed in l10n phase.
177178
onPressed: () {
178179
// Dispatch delete event
179180
context.read<ContentManagementBloc>().add(
180-
DeleteSourceRequested(source.id),
181+
ArchiveSourceRequested(source.id),
181182
);
182183
},
183184
),

0 commit comments

Comments
 (0)