From 3b9bfceef0e6fbf7a93c68d8a658c5b93adef40f Mon Sep 17 00:00:00 2001 From: Brandon Wees Date: Thu, 24 Jul 2025 14:09:17 -0500 Subject: [PATCH] fix: album deleted toast message (#20121) * fix: album deleted toast message * Update mobile/lib/presentation/pages/drift_remote_album.page.dart Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> * Fix lint --------- Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> --- i18n/en.json | 1 + mobile/lib/presentation/pages/drift_remote_album.page.dart | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 73338ff6cc..f75af26611 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -397,6 +397,7 @@ "album_cover_updated": "Album cover updated", "album_delete_confirmation": "Are you sure you want to delete the album {album}?", "album_delete_confirmation_description": "If this album is shared, other users will not be able to access it anymore.", + "album_deleted": "Album deleted", "album_info_card_backup_album_excluded": "EXCLUDED", "album_info_card_backup_album_included": "INCLUDED", "album_info_updated": "Album info updated", diff --git a/mobile/lib/presentation/pages/drift_remote_album.page.dart b/mobile/lib/presentation/pages/drift_remote_album.page.dart index 6b68bfcd4e..4d49cf3012 100644 --- a/mobile/lib/presentation/pages/drift_remote_album.page.dart +++ b/mobile/lib/presentation/pages/drift_remote_album.page.dart @@ -2,7 +2,6 @@ import 'package:auto_route/auto_route.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; - import 'package:immich_mobile/domain/models/album/album.model.dart'; import 'package:immich_mobile/domain/models/asset/base_asset.model.dart'; import 'package:immich_mobile/extensions/build_context_extensions.dart'; @@ -164,8 +163,7 @@ class _RemoteAlbumPageState extends ConsumerState { ImmichToast.show( context: context, - msg: 'library_deleted' - .t(context: context), // Using existing success message + msg: 'album_deleted'.t(context: context), toastType: ToastType.success, );