1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-03-05 15:15:59 +02:00

New: Add TVDB Link to add new series search result

This commit is contained in:
Mark McDowall 2019-08-11 00:03:22 -07:00
parent f333196efe
commit d72b16531b
3 changed files with 35 additions and 1 deletions

View File

@ -20,7 +20,12 @@
height: 250px; height: 250px;
} }
.content {
flex: 0 1 100%;
}
.title { .title {
display: flex;
font-weight: 300; font-weight: 300;
font-size: 36px; font-size: 36px;
} }
@ -30,6 +35,18 @@
color: $disabledColor; color: $disabledColor;
} }
.tvdbLink {
composes: link from '~Components/Link/Link.css';
margin-top: -4px;
margin-left: auto;
color: $textColor;
}
.tvdbLinkIcon {
margin-left: 10px;
}
.alreadyExistsIcon { .alreadyExistsIcon {
margin-left: 10px; margin-left: 10px;
color: #37bc9b; color: #37bc9b;

View File

@ -39,6 +39,10 @@ class AddNewSeriesSearchResult extends Component {
this.setState({ isNewAddSeriesModalOpen: false }); this.setState({ isNewAddSeriesModalOpen: false });
} }
onTVDBLinkPress = (event) => {
event.stopPropagation();
}
// //
// Render // Render
@ -89,7 +93,7 @@ class AddNewSeriesSearchResult extends Component {
/> />
} }
<div> <div className={styles.content}>
<div className={styles.title}> <div className={styles.title}>
{title} {title}
@ -111,6 +115,18 @@ class AddNewSeriesSearchResult extends Component {
/> : /> :
null null
} }
<Link
className={styles.tvdbLink}
to={`http://www.thetvdb.com/?tab=series&id=${tvdbId}`}
onPress={this.onTVDBLinkPress}
>
<Icon
className={styles.tvdbLinkIcon}
name={icons.EXTERNAL_LINK}
size={28}
/>
</Link>
</div> </div>
<div> <div>

View File

@ -1,6 +1,7 @@
const sonarrBlue = '#35c5f4'; const sonarrBlue = '#35c5f4';
module.exports = { module.exports = {
textColor: '#515253',
defaultColor: '#333', defaultColor: '#333',
disabledColor: '#999', disabledColor: '#999',
dimColor: '#555', dimColor: '#555',