diff --git a/CHANGELOG.md b/CHANGELOG.md index b6176eda..a1707c36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). - (**Migration**) Abort active search when selecting a match through the manual search - (**Migration**) Sort unselected matched entries by 1. their latest chapter, 2. their source priority, 3. their title - (**Migration**) Change migration match exclude/include icons +- (**Migration**) Show the exclude/include button only for an entry with a selected match ### Fixed diff --git a/src/features/migration/components/migration-entry/MigrationEntry.tsx b/src/features/migration/components/migration-entry/MigrationEntry.tsx index 085f2075..ac808967 100644 --- a/src/features/migration/components/migration-entry/MigrationEntry.tsx +++ b/src/features/migration/components/migration-entry/MigrationEntry.tsx @@ -91,7 +91,7 @@ const MigrationEntryMobile = memo( {!isMigrating && ( void; @@ -74,33 +74,39 @@ export const MigrationEntrySearchExcludeActions = ({ )} - - - isExcluded ? MigrationManager.includeManga(mangaId) : MigrationManager.excludeManga(mangaId) - } - > - {isExcluded ? : } - - + {hasSelectedMatch && ( + + + isExcluded + ? MigrationManager.includeManga(mangaId) + : MigrationManager.excludeManga(mangaId) + } + > + {isExcluded ? : } + + + )} ); } return ( - - - isExcluded ? MigrationManager.includeManga(mangaId) : MigrationManager.excludeManga(mangaId) - } - > - {isExcluded ? : } - - + {hasSelectedMatch && ( + + + isExcluded ? MigrationManager.includeManga(mangaId) : MigrationManager.excludeManga(mangaId) + } + > + {isExcluded ? : } + + + )} {