mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
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 <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
d15f67da5d
commit
708e42d8a3
2 changed files with 4 additions and 4 deletions
|
|
@ -46,7 +46,7 @@ class ArchiveActionButton extends ConsumerWidget {
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
return BaseActionButton(
|
return BaseActionButton(
|
||||||
iconData: Icons.archive_outlined,
|
iconData: Icons.archive_outlined,
|
||||||
label: "archive".t(context: context),
|
label: "to_archive".t(context: context),
|
||||||
onPressed: () => _onTap(context, ref),
|
onPressed: () => _onTap(context, ref),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,9 @@ class DriftMemoryBottomInfo extends StatelessWidget {
|
||||||
message: 'view_in_timeline'.tr(),
|
message: 'view_in_timeline'.tr(),
|
||||||
child: MaterialButton(
|
child: MaterialButton(
|
||||||
minWidth: 0,
|
minWidth: 0,
|
||||||
onPressed: () {
|
onPressed: () async {
|
||||||
context.maybePop();
|
await context.maybePop();
|
||||||
context.navigateTo(const TabShellRoute(children: [MainTimelineRoute()]));
|
await context.navigateTo(const TabShellRoute(children: [MainTimelineRoute()]));
|
||||||
EventStream.shared.emit(ScrollToDateEvent(fileCreatedDate));
|
EventStream.shared.emit(ScrollToDateEvent(fileCreatedDate));
|
||||||
},
|
},
|
||||||
shape: const CircleBorder(),
|
shape: const CircleBorder(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue