Add bulk migration manual search selection dialog
This commit is contained in:
@@ -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**) Change migration match exclude/include icons
|
||||||
- (**Migration**) Show the exclude/include button only for an entry with a selected match
|
- (**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**) 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"
|
- (**Source/Extension**) Rename language "All" to "Multi"
|
||||||
- (**Reader**) Simplify changing settings in desktop sidebar
|
- (**Reader**) Simplify changing settings in desktop sidebar
|
||||||
- (**Reader**) Ignore tap zone clicks while window does not have focus
|
- (**Reader**) Ignore tap zone clicks while window does not have focus
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ import { MANGA_ACTION_TO_TRANSLATION } from '@/features/manga/Manga.constants.ts
|
|||||||
import { getErrorMessage } from '@/lib/HelperFunctions.ts';
|
import { getErrorMessage } from '@/lib/HelperFunctions.ts';
|
||||||
import { assertIsDefined } from '@/base/Asserts.ts';
|
import { assertIsDefined } from '@/base/Asserts.ts';
|
||||||
import { usePress } from '@/base/hooks/usePress.ts';
|
import { usePress } from '@/base/hooks/usePress.ts';
|
||||||
|
import { Confirmation } from '@/base/AppAwaitableComponent.ts';
|
||||||
|
|
||||||
const getMangaLinkTo = (mode: MangaCardMode, mangaId: number): string => {
|
const getMangaLinkTo = (mode: MangaCardMode, mangaId: number): string => {
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
@@ -105,8 +106,23 @@ export const MangaCard = memo((props: MangaCardProps) => {
|
|||||||
|
|
||||||
if (isMigrateSelectMode) {
|
if (isMigrateSelectMode) {
|
||||||
if (isMigrationSelectBulkMode) {
|
if (isMigrationSelectBulkMode) {
|
||||||
|
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);
|
assertIsDefined(onMigrateSelect);
|
||||||
onMigrateSelect({ ...manga, missingChapters: undefined });
|
onMigrateSelect({ ...manga, missingChapters: undefined });
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -667,6 +667,10 @@ msgstr "Browser"
|
|||||||
msgid "Build time"
|
msgid "Build time"
|
||||||
msgstr "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
|
#: src/features/settings/Settings.constants.ts
|
||||||
msgid "Bundled"
|
msgid "Bundled"
|
||||||
msgstr "Bundled"
|
msgstr "Bundled"
|
||||||
@@ -3093,6 +3097,7 @@ msgstr "See the official <0>MUI documentation</0> for how to customize the theme
|
|||||||
|
|
||||||
#: src/features/chapter/components/actions/ChapterActionMenuItems.tsx
|
#: src/features/chapter/components/actions/ChapterActionMenuItems.tsx
|
||||||
#: src/features/chapter/components/cards/ChapterCard.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/MangaActionMenuItems.tsx
|
||||||
#: src/features/manga/components/MangaOptionButton.tsx
|
#: src/features/manga/components/MangaOptionButton.tsx
|
||||||
#: src/features/migration/components/migration-entry/MigrationMatchedEntry.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"
|
msgid "Show continue reading button"
|
||||||
msgstr "Show continue reading button"
|
msgstr "Show continue reading button"
|
||||||
|
|
||||||
|
#: src/features/manga/components/cards/MangaCard.tsx
|
||||||
#: src/features/manga/hooks/useManageMangaLibraryState.tsx
|
#: src/features/manga/hooks/useManageMangaLibraryState.tsx
|
||||||
#: src/features/migration/components/MigrationOptionsDialog.tsx
|
#: src/features/migration/components/MigrationOptionsDialog.tsx
|
||||||
msgid "Show entry"
|
msgid "Show entry"
|
||||||
|
|||||||
Reference in New Issue
Block a user