mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 08:07:10 -07:00
Fixed: Show more information in UI when testing SAB fails in some cases
This commit is contained in:
parent
e2d1b256e4
commit
2f3888f5ed
5 changed files with 34 additions and 11 deletions
|
@ -218,7 +218,7 @@ function FormInputGroup(props) {
|
|||
key={index}
|
||||
text={error.message}
|
||||
link={error.link}
|
||||
linkTooltip={error.detailedMessage}
|
||||
tooltip={error.detailedMessage}
|
||||
isError={true}
|
||||
isCheckInput={checkInput}
|
||||
/>
|
||||
|
@ -233,7 +233,7 @@ function FormInputGroup(props) {
|
|||
key={index}
|
||||
text={warning.message}
|
||||
link={warning.link}
|
||||
linkTooltip={warning.detailedMessage}
|
||||
tooltip={warning.detailedMessage}
|
||||
isWarning={true}
|
||||
isCheckInput={checkInput}
|
||||
/>
|
||||
|
|
|
@ -37,3 +37,7 @@
|
|||
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.details {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ function FormInputHelpText(props) {
|
|||
className,
|
||||
text,
|
||||
link,
|
||||
linkTooltip,
|
||||
tooltip,
|
||||
isError,
|
||||
isWarning,
|
||||
isCheckInput
|
||||
|
@ -28,16 +28,27 @@ function FormInputHelpText(props) {
|
|||
{text}
|
||||
|
||||
{
|
||||
!!link &&
|
||||
link ?
|
||||
<Link
|
||||
className={styles.link}
|
||||
to={link}
|
||||
title={linkTooltip}
|
||||
title={tooltip}
|
||||
>
|
||||
<Icon
|
||||
name={icons.EXTERNAL_LINK}
|
||||
/>
|
||||
</Link>
|
||||
</Link> :
|
||||
null
|
||||
}
|
||||
|
||||
{
|
||||
!link && tooltip ?
|
||||
<Icon
|
||||
containerClassName={styles.details}
|
||||
name={icons.INFO}
|
||||
title={tooltip}
|
||||
/> :
|
||||
null
|
||||
}
|
||||
</div>
|
||||
);
|
||||
|
@ -47,7 +58,7 @@ FormInputHelpText.propTypes = {
|
|||
className: PropTypes.string.isRequired,
|
||||
text: PropTypes.string.isRequired,
|
||||
link: PropTypes.string,
|
||||
linkTooltip: PropTypes.string,
|
||||
tooltip: PropTypes.string,
|
||||
isError: PropTypes.bool,
|
||||
isWarning: PropTypes.bool,
|
||||
isCheckInput: PropTypes.bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue