use new form layout for local library editor (#2129)
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
using ErsatzTV.ViewModels;
|
||||
using FluentValidation;
|
||||
|
||||
namespace ErsatzTV.Validators;
|
||||
|
||||
public class LocalLibraryEditViewModelValidator : AbstractValidator<LocalLibraryEditViewModel>
|
||||
{
|
||||
public LocalLibraryEditViewModelValidator() => RuleFor(c => c.Name).NotEmpty();
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
using ErsatzTV.ViewModels;
|
||||
using FluentValidation;
|
||||
|
||||
namespace ErsatzTV.Validators;
|
||||
|
||||
public class LocalLibraryPathEditViewModelValidator : AbstractValidator<LocalLibraryPathEditViewModel>
|
||||
{
|
||||
public LocalLibraryPathEditViewModelValidator()
|
||||
{
|
||||
RuleFor(x => x.Path).NotEmpty();
|
||||
RuleFor(x => x.Path).Must(Directory.Exists).WithMessage("Path must exist on filesystem");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user