Skip to content

Commit

Permalink
Add manga migrate option to menu on mobile devices (#584)
Browse files Browse the repository at this point in the history
Should have been added with e0c5e05
  • Loading branch information
schroda authored Jan 29, 2024
1 parent 6716339 commit d6468bc
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions src/components/manga/MangaToolbarMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,30 @@ export const MangaToolbarMenu = ({ manga, onRefresh, refreshing }: IProps) => {
<ListItemText>{t('manga.label.reload_from_source')}</ListItemText>
</MenuItem>
{manga.inLibrary && (
<MenuItem
onClick={() => {
setEditCategories(true);
handleClose();
}}
>
<ListItemIcon>
<Label fontSize="small" />
</ListItemIcon>
<ListItemText>{t('manga.label.edit_categories')}</ListItemText>
</MenuItem>
<>
<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);
handleClose();
}}
>
<ListItemIcon>
<Label fontSize="small" />
</ListItemIcon>
<ListItemText>{t('manga.label.edit_categories')}</ListItemText>
</MenuItem>
</>
)}
</Menu>
</>
Expand Down

0 comments on commit d6468bc

Please sign in to comment.