mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Fixed: (UI) Show release group as optional in Manual Import
This commit is contained in:
parent
9fe9e0f441
commit
911c147090
5 changed files with 28 additions and 11 deletions
|
@ -275,7 +275,7 @@ class InteractiveImportRow extends Component {
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
showReleaseGroupPlaceholder ?
|
showReleaseGroupPlaceholder ?
|
||||||
<InteractiveImportRowCellPlaceholder /> :
|
<InteractiveImportRowCellPlaceholder isOptional={true} /> :
|
||||||
releaseGroup
|
releaseGroup
|
||||||
}
|
}
|
||||||
</TableRowCellButton>
|
</TableRowCellButton>
|
||||||
|
|
|
@ -5,3 +5,7 @@
|
||||||
height: 25px;
|
height: 25px;
|
||||||
border: 2px dashed var(--dangerColor);
|
border: 2px dashed var(--dangerColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.optional {
|
||||||
|
border: 2px dashed var(--gray);
|
||||||
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// This file is automatically generated.
|
// This file is automatically generated.
|
||||||
// Please do not change this file!
|
// Please do not change this file!
|
||||||
interface CssExports {
|
interface CssExports {
|
||||||
|
'optional': string;
|
||||||
'placeholder': string;
|
'placeholder': string;
|
||||||
}
|
}
|
||||||
export const cssExports: CssExports;
|
export const cssExports: CssExports;
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
import React from 'react';
|
|
||||||
import styles from './InteractiveImportRowCellPlaceholder.css';
|
|
||||||
|
|
||||||
function InteractiveImportRowCellPlaceholder() {
|
|
||||||
return (
|
|
||||||
<span className={styles.placeholder} />
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default InteractiveImportRowCellPlaceholder;
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
import classNames from 'classnames';
|
||||||
|
import React from 'react';
|
||||||
|
import styles from './InteractiveImportRowCellPlaceholder.css';
|
||||||
|
|
||||||
|
interface InteractiveImportRowCellPlaceholderProps {
|
||||||
|
isOptional?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
function InteractiveImportRowCellPlaceholder(
|
||||||
|
props: InteractiveImportRowCellPlaceholderProps
|
||||||
|
) {
|
||||||
|
return (
|
||||||
|
<span
|
||||||
|
className={classNames(
|
||||||
|
styles.placeholder,
|
||||||
|
props.isOptional && styles.optional
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default InteractiveImportRowCellPlaceholder;
|
Loading…
Add table
Add a link
Reference in a new issue