New: Readarr 0.1

This commit is contained in:
ta264
2020-05-06 21:14:11 +01:00
parent 476f2d6047
commit 08496c82af
911 changed files with 14837 additions and 24442 deletions
@@ -88,7 +88,7 @@ class ArtistSearchInput extends Component {
goToArtist(item) {
this.setState({ value: '' });
this.props.onGoToArtist(item.item.foreignArtistId);
this.props.onGoToArtist(item.item.titleSlug);
}
reset() {
@@ -16,14 +16,14 @@ function createCleanArtistSelector() {
artistName,
sortName,
images,
foreignArtistId,
titleSlug,
tags = []
} = artist;
return {
artistName,
sortName,
foreignArtistId,
titleSlug,
images,
tags: tags.reduce((acc, id) => {
const matchingTag = allTags.find((tag) => tag.id === id);
@@ -53,8 +53,8 @@ function createMapStateToProps() {
function createMapDispatchToProps(dispatch, props) {
return {
onGoToArtist(foreignArtistId) {
dispatch(push(`${window.Readarr.urlBase}/artist/${foreignArtistId}`));
onGoToArtist(titleSlug) {
dispatch(push(`${window.Readarr.urlBase}/author/${titleSlug}`));
},
onGoToAddNewArtist(query) {
@@ -4,7 +4,7 @@
align-items: center;
flex: 0 0 auto;
height: $headerHeight;
background-color: $themeAlternateBlue;
background-color: $themeAlternateRed;
color: $white;
}
@@ -41,12 +41,12 @@
composes: link from '~Components/Link/Link.css';
width: 30px;
color: $themeRed;
color: $themeDarkRed;
text-align: center;
line-height: 60px;
&:hover {
color: #9c1f30;
color: $themeDarkColor;
}
}