diff --git a/CHANGELOG.md b/CHANGELOG.md index e14fb9c0..2899c2ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). - (**Migration**) Change migration match exclude/include icons - (**Migration**) Show the exclude/include button only for an entry with a selected match - (**Migration**) Allow resuming a migration only in a secure context (localhost or https) +- (**Migration**) Show dialog on manual search selection to optionally open the search result entry instead of selecting it - (**Source/Extension**) Rename language "All" to "Multi" - (**Reader**) Simplify changing settings in desktop sidebar - (**Reader**) Ignore tap zone clicks while window does not have focus diff --git a/src/features/manga/components/cards/MangaCard.tsx b/src/features/manga/components/cards/MangaCard.tsx index 99f5f67e..2e9db4bf 100644 --- a/src/features/manga/components/cards/MangaCard.tsx +++ b/src/features/manga/components/cards/MangaCard.tsx @@ -32,6 +32,7 @@ import { MANGA_ACTION_TO_TRANSLATION } from '@/features/manga/Manga.constants.ts import { getErrorMessage } from '@/lib/HelperFunctions.ts'; import { assertIsDefined } from '@/base/Asserts.ts'; import { usePress } from '@/base/hooks/usePress.ts'; +import { Confirmation } from '@/base/AppAwaitableComponent.ts'; const getMangaLinkTo = (mode: MangaCardMode, mangaId: number): string => { switch (mode) { @@ -105,8 +106,23 @@ export const MangaCard = memo((props: MangaCardProps) => { if (isMigrateSelectMode) { if (isMigrationSelectBulkMode) { - assertIsDefined(onMigrateSelect); - onMigrateSelect({ ...manga, missingChapters: undefined }); + Confirmation.show({ + title: t`Bulk migration manual search`, + message: `Select "${manga.title}" as the migration destination?`, + actions: { + confirm: { + title: t`Select`, + }, + extra: { + show: true, + title: t`Show entry`, + link: AppRoutes.manga.path(id), + }, + }, + }).then(() => { + assertIsDefined(onMigrateSelect); + onMigrateSelect({ ...manga, missingChapters: undefined }); + }); return; } diff --git a/src/i18n/locales/en.po b/src/i18n/locales/en.po index 47f5ab1d..de1db808 100644 --- a/src/i18n/locales/en.po +++ b/src/i18n/locales/en.po @@ -667,6 +667,10 @@ msgstr "Browser" msgid "Build time" msgstr "Build time" +#: src/features/manga/components/cards/MangaCard.tsx +msgid "Bulk migration manual search" +msgstr "Bulk migration manual search" + #: src/features/settings/Settings.constants.ts msgid "Bundled" msgstr "Bundled" @@ -3093,6 +3097,7 @@ msgstr "See the official <0>MUI documentation for how to customize the theme #: src/features/chapter/components/actions/ChapterActionMenuItems.tsx #: src/features/chapter/components/cards/ChapterCard.tsx +#: src/features/manga/components/cards/MangaCard.tsx #: src/features/manga/components/MangaActionMenuItems.tsx #: src/features/manga/components/MangaOptionButton.tsx #: src/features/migration/components/migration-entry/MigrationMatchedEntry.tsx @@ -3210,6 +3215,7 @@ msgstr "Show all duplicated entries in your library" msgid "Show continue reading button" msgstr "Show continue reading button" +#: src/features/manga/components/cards/MangaCard.tsx #: src/features/manga/hooks/useManageMangaLibraryState.tsx #: src/features/migration/components/MigrationOptionsDialog.tsx msgid "Show entry"