New: Show tooltips for changeable columns on Manual Import

Closes #3069
This commit is contained in:
Mark McDowall 2019-04-22 20:19:07 -07:00
parent 150a87f2ea
commit 0eb7973ab0
2 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,10 @@ import { kinds } from 'Helpers/Props';
import Label from 'Components/Label';
function getTooltip(title, quality, size) {
if (!title) {
return;
}
const revision = quality.revision;
if (revision.real && revision.real > 0) {

View File

@ -211,6 +211,7 @@ class InteractiveImportRow extends Component {
<TableRowCellButton
isDisabled={!allowSeriesChange}
title={allowSeriesChange ? 'Click to change series' : undefined}
onPress={this.onSelectSeriesPress}
>
{
@ -220,6 +221,7 @@ class InteractiveImportRow extends Component {
<TableRowCellButton
isDisabled={!series}
title={series ? 'Click to change season' : undefined}
onPress={this.onSelectSeasonPress}
>
{
@ -229,6 +231,7 @@ class InteractiveImportRow extends Component {
<TableRowCellButton
isDisabled={!series || isNaN(seasonNumber)}
title={series && !isNaN(seasonNumber) ? 'Click to change episode' : undefined}
onPress={this.onSelectEpisodePress}
>
{
@ -238,6 +241,7 @@ class InteractiveImportRow extends Component {
<TableRowCellButton
className={styles.quality}
title="Click to change quality"
onPress={this.onSelectQualityPress}
>
{
@ -256,6 +260,7 @@ class InteractiveImportRow extends Component {
<TableRowCellButton
className={styles.language}
title="Click to change language"
onPress={this.onSelectLanguagePress}
>
{