mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-23 13:57:06 -04:00
New: Show tooltips for changeable columns on Manual Import
Closes #3069
This commit is contained in:
parent
150a87f2ea
commit
0eb7973ab0
2 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue