1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-23 22:25:56 -04:00

New: Add name field to release profiles

This commit is contained in:
Robert Dailey
2021-02-02 18:51:06 -06:00
committed by GitHub
parent f3f2648ce5
commit 5e4c9dfe60
6 changed files with 51 additions and 2 deletions
@@ -29,6 +29,7 @@ function EditReleaseProfileModalContent(props) {
const {
id,
name,
enabled,
required,
ignored,
@@ -46,6 +47,20 @@ function EditReleaseProfileModalContent(props) {
<ModalBody>
<Form {...otherProps}>
<FormGroup>
<FormLabel>Name</FormLabel>
<FormInputGroup
type={inputTypes.TEXT}
name="name"
{...name}
placeholder="Optional name"
canEdit={true}
onChange={onInputChange}
/>
</FormGroup>
<FormGroup>
<FormLabel>Enable Profile</FormLabel>
@@ -9,3 +9,11 @@
flex-wrap: wrap;
margin-top: 5px;
}
.name {
@add-mixin truncate;
margin-bottom: 20px;
font-weight: 300;
font-size: 24px;
}
@@ -56,6 +56,7 @@ class ReleaseProfile extends Component {
render() {
const {
id,
name,
enabled,
required,
ignored,
@@ -79,6 +80,14 @@ class ReleaseProfile extends Component {
overlayContent={true}
onPress={this.onEditReleaseProfilePress}
>
{
name ?
<div className={styles.name}>
{name}
</div> :
null
}
<div>
{
split(required).map((item) => {
@@ -184,6 +193,7 @@ class ReleaseProfile extends Component {
ReleaseProfile.propTypes = {
id: PropTypes.number.isRequired,
name: PropTypes.string,
enabled: PropTypes.bool.isRequired,
required: PropTypes.string.isRequired,
ignored: PropTypes.string.isRequired,