New: Add TVDB Link to add new series search result

pull/3268/head
Mark McDowall 5 years ago
parent f333196efe
commit d72b16531b

@ -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;

@ -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>

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

Loading…
Cancel
Save