Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/5e4c9dfe605db6fab52c8aeeb2439bd6638d699c
You should set ROOT_URL correctly, otherwise the web may not work correctly.
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 < / F o r m L a b e l >
< FormInputGroup
type = { inputTypes . TEXT }
name = "name"
{ ... name }
placeholder = "Optional name"
canEdit = { true }
onChange = { onInputChange }
/ >
< / F o r m G r o u p >
< FormGroup >
< FormLabel > Enable Profile < / F o r m L a b e l >
@ -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 }
< / d i v > :
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 ,
@ -0,0 +1,14 @@
using FluentMigrator ;
using NzbDrone.Core.Datastore.Migration.Framework ;
namespace NzbDrone.Core.Datastore.Migration
{
[Migration(154)]
public class add_name_release_profile : NzbDroneMigrationBase
{
protected override void MainDbUpgrade ( )
{
Alter . Table ( "ReleaseProfiles" ) . AddColumn ( "Name" ) . AsString ( ) . Nullable ( ) . WithDefaultValue ( null ) ;
}
}
}
@ -5,6 +5,7 @@ namespace NzbDrone.Core.Profiles.Releases
{
public class ReleaseProfile : ModelBase
{
public string Name { get ; set ; }
public bool Enabled { get ; set ; }
public string Required { get ; set ; }
public string Ignored { get ; set ; }
@ -7,6 +7,7 @@ namespace Sonarr.Api.V3.Profiles.Release
{
public class ReleaseProfileResource : RestResource
{
public string Name { get ; set ; }
public bool Enabled { get ; set ; }
public string Required { get ; set ; }
public string Ignored { get ; set ; }
@ -30,7 +31,7 @@ namespace Sonarr.Api.V3.Profiles.Release
return new ReleaseProfileResource
{
Id = model . Id ,
Name = model . Name ,
Enabled = model . Enabled ,
Required = model . Required ,
Ignored = model . Ignored ,
@ -48,7 +49,7 @@ namespace Sonarr.Api.V3.Profiles.Release
return new ReleaseProfile
{
Id = resource . Id ,
Name = resource . Name ,
Enabled = resource . Enabled ,
Required = resource . Required ,
Ignored = resource . Ignored ,