Fix showing empty destination source group header
This commit is contained in:
@@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|||||||
|
|
||||||
- (**Migration**) Fix aborting bulk migration search/execution while webUI is served on a subpath
|
- (**Migration**) Fix aborting bulk migration search/execution while webUI is served on a subpath
|
||||||
- (**Migration**) Fix retry button never being shown for failed search/migration entries
|
- (**Migration**) Fix retry button never being shown for failed search/migration entries
|
||||||
|
- (**Migration**) Fix showing an empty "Available" source group header when all sources are selected
|
||||||
- (**Reader**) Fix scrollbar appearing with "fit to widt/height/screen" page scale mode and applied safe area insets
|
- (**Reader**) Fix scrollbar appearing with "fit to widt/height/screen" page scale mode and applied safe area insets
|
||||||
- (**Reader**) Fix wrongly positioned mobile progress bar current page indicator
|
- (**Reader**) Fix wrongly positioned mobile progress bar current page indicator
|
||||||
- (**Reader**) Fix mobile progress bar previous/next chapter button visibility on hover and while disabled
|
- (**Reader**) Fix mobile progress bar previous/next chapter button visibility on hover and while disabled
|
||||||
|
|||||||
@@ -177,7 +177,11 @@ export const MigrationSourceList = ({
|
|||||||
groupCounts={groupCounts}
|
groupCounts={groupCounts}
|
||||||
computeItemKey={computeItemKey}
|
computeItemKey={computeItemKey}
|
||||||
groupContent={(index) => {
|
groupContent={(index) => {
|
||||||
const [group] = groupedSourcesBySelectionState[index];
|
const [group, sourcesOfGroup] = groupedSourcesBySelectionState[index];
|
||||||
|
|
||||||
|
if (!sourcesOfGroup.length) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledGroupHeader
|
<StyledGroupHeader
|
||||||
@@ -193,7 +197,7 @@ export const MigrationSourceList = ({
|
|||||||
{group ? t`Selected` : t`Available`}
|
{group ? t`Selected` : t`Available`}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
{group && !!selectedSources.length && (
|
{group && (
|
||||||
<Typography variant="body2" color="text.secondary">
|
<Typography variant="body2" color="text.secondary">
|
||||||
{t`Drag to prioritize`}
|
{t`Drag to prioritize`}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
Reference in New Issue
Block a user