Add manga migrate option to menu on mobile devices (#584)

Should have been added with e0c5e0521d
This commit is contained in:
schroda
2024-01-29 20:55:26 +01:00
committed by GitHub
parent 6716339c0e
commit d6468bca57

View File

@@ -117,6 +117,18 @@ export const MangaToolbarMenu = ({ manga, onRefresh, refreshing }: IProps) => {
<ListItemText>{t('manga.label.reload_from_source')}</ListItemText>
</MenuItem>
{manga.inLibrary && (
<>
<MenuItem
component={Link}
to={`/migrate/source/${manga.source?.id}/manga/${manga.id}/search?query=${manga.title}`}
state={{ mangaTitle: manga.title }}
style={{ textDecoration: 'none', color: 'inherit' }}
>
<ListItemIcon>
<SyncAltIcon fontSize="small" />
</ListItemIcon>
<ListItemText>{t('migrate.title')}</ListItemText>
</MenuItem>
<MenuItem
onClick={() => {
setEditCategories(true);
@@ -128,6 +140,7 @@ export const MangaToolbarMenu = ({ manga, onRefresh, refreshing }: IProps) => {
</ListItemIcon>
<ListItemText>{t('manga.label.edit_categories')}</ListItemText>
</MenuItem>
</>
)}
</Menu>
</>