mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-26 12:42:31 +01:00
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';
|
||||
|
||||
function getTooltip(title, quality, size) {
|
||||
if (!title) {
|
||||
return;
|
||||
}
|
||||
|
||||
const revision = quality.revision;
|
||||
|
||||
if (revision.real && revision.real > 0) {
|
||||
|
@ -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}
|
||||
>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user