New: Show tooltips for changeable columns on Manual Import
Closes #3069
This commit is contained in:
parent
150a87f2ea
commit
0eb7973ab0
|
@ -5,6 +5,10 @@ import { kinds } from 'Helpers/Props';
|
||||||
import Label from 'Components/Label';
|
import Label from 'Components/Label';
|
||||||
|
|
||||||
function getTooltip(title, quality, size) {
|
function getTooltip(title, quality, size) {
|
||||||
|
if (!title) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const revision = quality.revision;
|
const revision = quality.revision;
|
||||||
|
|
||||||
if (revision.real && revision.real > 0) {
|
if (revision.real && revision.real > 0) {
|
||||||
|
|
|
@ -211,6 +211,7 @@ class InteractiveImportRow extends Component {
|
||||||
|
|
||||||
<TableRowCellButton
|
<TableRowCellButton
|
||||||
isDisabled={!allowSeriesChange}
|
isDisabled={!allowSeriesChange}
|
||||||
|
title={allowSeriesChange ? 'Click to change series' : undefined}
|
||||||
onPress={this.onSelectSeriesPress}
|
onPress={this.onSelectSeriesPress}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
|
@ -220,6 +221,7 @@ class InteractiveImportRow extends Component {
|
||||||
|
|
||||||
<TableRowCellButton
|
<TableRowCellButton
|
||||||
isDisabled={!series}
|
isDisabled={!series}
|
||||||
|
title={series ? 'Click to change season' : undefined}
|
||||||
onPress={this.onSelectSeasonPress}
|
onPress={this.onSelectSeasonPress}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
|
@ -229,6 +231,7 @@ class InteractiveImportRow extends Component {
|
||||||
|
|
||||||
<TableRowCellButton
|
<TableRowCellButton
|
||||||
isDisabled={!series || isNaN(seasonNumber)}
|
isDisabled={!series || isNaN(seasonNumber)}
|
||||||
|
title={series && !isNaN(seasonNumber) ? 'Click to change episode' : undefined}
|
||||||
onPress={this.onSelectEpisodePress}
|
onPress={this.onSelectEpisodePress}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
|
@ -238,6 +241,7 @@ class InteractiveImportRow extends Component {
|
||||||
|
|
||||||
<TableRowCellButton
|
<TableRowCellButton
|
||||||
className={styles.quality}
|
className={styles.quality}
|
||||||
|
title="Click to change quality"
|
||||||
onPress={this.onSelectQualityPress}
|
onPress={this.onSelectQualityPress}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
|
@ -256,6 +260,7 @@ class InteractiveImportRow extends Component {
|
||||||
|
|
||||||
<TableRowCellButton
|
<TableRowCellButton
|
||||||
className={styles.language}
|
className={styles.language}
|
||||||
|
title="Click to change language"
|
||||||
onPress={this.onSelectLanguagePress}
|
onPress={this.onSelectLanguagePress}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue