1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00

Add movie status to the main search page if the movie is already in the db (label on small screen otherwise progress bar under poster)

Fix issues with yellow/grey movie status color not showing up properly
Refactor the getMovieStatus to be more generic
This commit is contained in:
nitsua
2020-10-05 14:50:03 -04:00
committed by Qstick
parent e263d066da
commit 553b8b1945
12 changed files with 205 additions and 68 deletions
+7 -3
View File
@@ -11,6 +11,7 @@ function Label(props) {
size,
outline,
children,
colorImpairedMode,
...otherProps
} = props;
@@ -20,7 +21,8 @@ function Label(props) {
className,
styles[kind],
styles[size],
outline && styles.outline
outline && styles.outline,
colorImpairedMode && 'colorImpaired'
)}
{...otherProps}
>
@@ -34,14 +36,16 @@ Label.propTypes = {
kind: PropTypes.oneOf(kinds.all).isRequired,
size: PropTypes.oneOf(sizes.all).isRequired,
outline: PropTypes.bool.isRequired,
children: PropTypes.node.isRequired
children: PropTypes.node.isRequired,
colorImpairedMode: PropTypes.bool
};
Label.defaultProps = {
className: styles.label,
kind: kinds.DEFAULT,
size: sizes.SMALL,
outline: false
outline: false,
colorImpairedMode: false
};
export default Label;