Better validation for Growl settings.

This commit is contained in:
Mark McDowall 2012-02-25 14:20:43 -08:00
parent c0e0bf7e66
commit b86a19451d
4 changed files with 154 additions and 2 deletions

View file

@ -201,7 +201,7 @@ namespace NzbDrone.Web.Models
[DataType(DataType.Text)]
[DisplayName("Client Hosts")]
[Description("Plex client hosts with port, comma separated for multiple clients")]
[RequiredIf("PlexNotifyOnGrab", true, ErrorMessage = "Required when Plex Notifications are enabled")]
[RequiredIfAny(new string[]{ "PlexNotifyOnGrab", "PlexNotifyOnDownload" }, new object[]{ true, true }, ErrorMessage = "Required when Plex Notifications are enabled")]
[DisplayFormat(ConvertEmptyStringToNull = false)]
public string PlexClientHosts { get; set; }