Skip to content

Commit 632be8f

Browse files
committed
refactor(content_management): replace delete action with archive
- Replaced delete icon with archive icon - Updated tooltip to 'Archive' (to be localized in future) - Changed event from DeleteTopicRequested to ArchiveTopicRequested
1 parent e76dc71 commit 632be8f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/content_management/view/topics_page.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,12 @@ class _TopicsDataSource extends DataTableSource {
171171
},
172172
),
173173
IconButton(
174-
icon: const Icon(Icons.delete),
174+
icon: const Icon(Icons.archive),
175+
tooltip: 'Archive', // todo(you): Will be fixed in l10n phase.
175176
onPressed: () {
176177
// Dispatch delete event
177178
context.read<ContentManagementBloc>().add(
178-
DeleteTopicRequested(topic.id),
179+
ArchiveTopicRequested(topic.id),
179180
);
180181
},
181182
),

0 commit comments

Comments
 (0)