1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

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
This commit is contained in:
Mark McDowall 2019-06-11 22:41:49 -07:00
parent 5275aa72fb
commit 3a7992b1c8
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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