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

View File

@ -39,6 +39,10 @@ class AddNewSeriesSearchResult extends Component {
this.setState({ isNewAddSeriesModalOpen: false });
}
onTVDBLinkPress = (event) => {
event.stopPropagation();
}
//
// Render
@ -89,7 +93,7 @@ class AddNewSeriesSearchResult extends Component {
/>
}
<div>
<div className={styles.content}>
<div className={styles.title}>
{title}
@ -111,6 +115,18 @@ class AddNewSeriesSearchResult extends Component {
/> :
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>

View File

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