mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Working on validation for forms, issues with server side, not sure how to post back model with AJAX submit, yet.
Split out settings model to support validation.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using SubSonic.SqlGeneration.Schema;
|
||||
|
||||
namespace NzbDrone.Core.Repository.Quality
|
||||
@@ -23,6 +24,7 @@ namespace NzbDrone.Core.Repository.Quality
|
||||
public string AllowedString { get; set; }
|
||||
|
||||
[DisplayName("Cutoff")]
|
||||
[Required(ErrorMessage = "Valid Cutoff is Required")]
|
||||
public QualityTypes Cutoff { get; set; }
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
|
||||
Reference in New Issue
Block a user