Small UI fixes

Fixed: Season count popover styling
Fixed: URL base of /series linking to the wrong path in some cases
Fixed: Manual import showing error when a different series is selected
Fixed: Error when deleting series from poster list
pull/3166/head
Mark McDowall 6 years ago
parent 5275aa72fb
commit 3a7992b1c8

@ -47,7 +47,7 @@ class Link extends Component {
el = 'a'; el = 'a';
linkProps.href = to; linkProps.href = to;
linkProps.target = target || '_self'; linkProps.target = target || '_self';
} else if (to.startsWith(window.Sonarr.urlBase)) { } else if (to.startsWith(`${window.Sonarr.urlBase}/`)) {
el = RouterLink; el = RouterLink;
linkProps.to = to; linkProps.to = to;
linkProps.target = target; linkProps.target = target;

@ -294,7 +294,7 @@ class InteractiveImportRow extends Component {
<TableRowCell> <TableRowCell>
{ {
!!rejections.length && rejections && rejections.length ?
<Popover <Popover
anchor={ anchor={
<Icon <Icon
@ -317,7 +317,8 @@ class InteractiveImportRow extends Component {
</ul> </ul>
} }
position={tooltipPositions.LEFT} position={tooltipPositions.LEFT}
/> /> :
null
} }
</TableRowCell> </TableRowCell>

@ -274,7 +274,6 @@ class SeriesDetailsSeason extends Component {
/> />
</div> </div>
} }
kind={kinds.INVERSE}
position={tooltipPositions.BOTTOM} position={tooltipPositions.BOTTOM}
/> />
</div> </div>

@ -5,7 +5,7 @@ function createSeriesQualityProfileSelector() {
return createSelector( return createSelector(
(state) => state.settings.qualityProfiles.items, (state) => state.settings.qualityProfiles.items,
createSeriesSelector(), createSeriesSelector(),
(qualityProfiles, series) => { (qualityProfiles, series = {}) => {
return qualityProfiles.find((profile) => { return qualityProfiles.find((profile) => {
return profile.id === series.qualityProfileId; return profile.id === series.qualityProfileId;
}); });

Loading…
Cancel
Save