mirror of
https://github.com/Radarr/Radarr
synced 2025-12-08 01:15:15 +01:00
Fixed: Tooltips for detailed error messages
(cherry picked from commit c589c4f85e49d9d30c48e778e9ea08e692544730)
This commit is contained in:
parent
efd2b80e10
commit
8fb2f64e98
1 changed files with 13 additions and 13 deletions
|
|
@ -254,14 +254,7 @@ function FormInputGroup<T>(props: FormInputGroupProps<T>) {
|
||||||
{helpLink ? <Link to={helpLink}>{translate('MoreInfo')}</Link> : null}
|
{helpLink ? <Link to={helpLink}>{translate('MoreInfo')}</Link> : null}
|
||||||
|
|
||||||
{errors.map((error, index) => {
|
{errors.map((error, index) => {
|
||||||
return 'message' in error ? (
|
return 'errorMessage' in error ? (
|
||||||
<FormInputHelpText
|
|
||||||
key={index}
|
|
||||||
text={error.message}
|
|
||||||
isError={true}
|
|
||||||
isCheckInput={checkInput}
|
|
||||||
/>
|
|
||||||
) : (
|
|
||||||
<FormInputHelpText
|
<FormInputHelpText
|
||||||
key={index}
|
key={index}
|
||||||
text={error.errorMessage}
|
text={error.errorMessage}
|
||||||
|
|
@ -270,23 +263,30 @@ function FormInputGroup<T>(props: FormInputGroupProps<T>) {
|
||||||
isError={true}
|
isError={true}
|
||||||
isCheckInput={checkInput}
|
isCheckInput={checkInput}
|
||||||
/>
|
/>
|
||||||
|
) : (
|
||||||
|
<FormInputHelpText
|
||||||
|
key={index}
|
||||||
|
text={error.message}
|
||||||
|
isError={true}
|
||||||
|
isCheckInput={checkInput}
|
||||||
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
||||||
{warnings.map((warning, index) => {
|
{warnings.map((warning, index) => {
|
||||||
return 'message' in warning ? (
|
return 'errorMessage' in warning ? (
|
||||||
<FormInputHelpText
|
<FormInputHelpText
|
||||||
key={index}
|
key={index}
|
||||||
text={warning.message}
|
text={warning.errorMessage}
|
||||||
|
link={warning.infoLink}
|
||||||
|
tooltip={warning.detailedDescription}
|
||||||
isWarning={true}
|
isWarning={true}
|
||||||
isCheckInput={checkInput}
|
isCheckInput={checkInput}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<FormInputHelpText
|
<FormInputHelpText
|
||||||
key={index}
|
key={index}
|
||||||
text={warning.errorMessage}
|
text={warning.message}
|
||||||
link={warning.infoLink}
|
|
||||||
tooltip={warning.detailedDescription}
|
|
||||||
isWarning={true}
|
isWarning={true}
|
||||||
isCheckInput={checkInput}
|
isCheckInput={checkInput}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue