diff --git a/frontend/src/Settings/Profiles/Release/EditReleaseProfileModalContent.js b/frontend/src/Settings/Profiles/Release/EditReleaseProfileModalContent.js index bef32e628..1c90faa36 100644 --- a/frontend/src/Settings/Profiles/Release/EditReleaseProfileModalContent.js +++ b/frontend/src/Settings/Profiles/Release/EditReleaseProfileModalContent.js @@ -29,6 +29,7 @@ function EditReleaseProfileModalContent(props) { const { id, + name, enabled, required, ignored, @@ -46,6 +47,20 @@ function EditReleaseProfileModalContent(props) {
+ + + Name + + + + Enable Profile diff --git a/frontend/src/Settings/Profiles/Release/ReleaseProfile.css b/frontend/src/Settings/Profiles/Release/ReleaseProfile.css index c1e2e59a2..df17e67e7 100644 --- a/frontend/src/Settings/Profiles/Release/ReleaseProfile.css +++ b/frontend/src/Settings/Profiles/Release/ReleaseProfile.css @@ -9,3 +9,11 @@ flex-wrap: wrap; margin-top: 5px; } + +.name { + @add-mixin truncate; + + margin-bottom: 20px; + font-weight: 300; + font-size: 24px; +} diff --git a/frontend/src/Settings/Profiles/Release/ReleaseProfile.js b/frontend/src/Settings/Profiles/Release/ReleaseProfile.js index 3c78a5da4..8daef52a3 100644 --- a/frontend/src/Settings/Profiles/Release/ReleaseProfile.js +++ b/frontend/src/Settings/Profiles/Release/ReleaseProfile.js @@ -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 ? +
+ {name} +
: + null + } +
{ 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, diff --git a/src/NzbDrone.Core/Datastore/Migration/154_add_name_release_profile.cs b/src/NzbDrone.Core/Datastore/Migration/154_add_name_release_profile.cs new file mode 100644 index 000000000..d902a164a --- /dev/null +++ b/src/NzbDrone.Core/Datastore/Migration/154_add_name_release_profile.cs @@ -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); + } + } +} diff --git a/src/NzbDrone.Core/Profiles/Releases/ReleaseProfile.cs b/src/NzbDrone.Core/Profiles/Releases/ReleaseProfile.cs index c8d6433c0..527ca483a 100644 --- a/src/NzbDrone.Core/Profiles/Releases/ReleaseProfile.cs +++ b/src/NzbDrone.Core/Profiles/Releases/ReleaseProfile.cs @@ -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; } diff --git a/src/Sonarr.Api.V3/Profiles/Release/ReleaseProfileResource.cs b/src/Sonarr.Api.V3/Profiles/Release/ReleaseProfileResource.cs index 55575781f..d9c814a3a 100644 --- a/src/Sonarr.Api.V3/Profiles/Release/ReleaseProfileResource.cs +++ b/src/Sonarr.Api.V3/Profiles/Release/ReleaseProfileResource.cs @@ -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,