Skip to content

Commit 708e42d

Browse files
fix: change translation key for archive action button (#20336)
* chore: change translation key for archive action button * chore: await navigation before emitting event --------- Co-authored-by: shenlong-tanwen <[email protected]>
1 parent d15f67d commit 708e42d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mobile/lib/presentation/widgets/action_buttons/archive_action_button.widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ArchiveActionButton extends ConsumerWidget {
4646
Widget build(BuildContext context, WidgetRef ref) {
4747
return BaseActionButton(
4848
iconData: Icons.archive_outlined,
49-
label: "archive".t(context: context),
49+
label: "to_archive".t(context: context),
5050
onPressed: () => _onTap(context, ref),
5151
);
5252
}

mobile/lib/presentation/widgets/memory/memory_bottom_info.widget.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ class DriftMemoryBottomInfo extends StatelessWidget {
4949
message: 'view_in_timeline'.tr(),
5050
child: MaterialButton(
5151
minWidth: 0,
52-
onPressed: () {
53-
context.maybePop();
54-
context.navigateTo(const TabShellRoute(children: [MainTimelineRoute()]));
52+
onPressed: () async {
53+
await context.maybePop();
54+
await context.navigateTo(const TabShellRoute(children: [MainTimelineRoute()]));
5555
EventStream.shared.emit(ScrollToDateEvent(fileCreatedDate));
5656
},
5757
shape: const CircleBorder(),

0 commit comments

Comments
 (0)