|
|
@@ -320,7 +320,7 @@ export function SpoolFormModal({ isOpen, onClose, spool, printersWithCalibration
|
|
|
if (!validation.isValid) {
|
|
|
setErrors(validation.errors);
|
|
|
// Switch to filament tab if there are errors there
|
|
|
- if (validation.errors.slicer_filament || validation.errors.material) {
|
|
|
+ if (validation.errors.slicer_filament || validation.errors.material || validation.errors.brand || validation.errors.subtype) {
|
|
|
setActiveTab('filament');
|
|
|
}
|
|
|
return;
|
|
|
@@ -438,6 +438,12 @@ export function SpoolFormModal({ isOpen, onClose, spool, printersWithCalibration
|
|
|
{errors.material && (
|
|
|
<p className="mt-1 text-xs text-red-400">{errors.material}</p>
|
|
|
)}
|
|
|
+ {errors.brand && (
|
|
|
+ <p className="mt-1 text-xs text-red-400">{errors.brand}</p>
|
|
|
+ )}
|
|
|
+ {errors.subtype && (
|
|
|
+ <p className="mt-1 text-xs text-red-400">{errors.subtype}</p>
|
|
|
+ )}
|
|
|
</div>
|
|
|
|
|
|
{/* Color Section */}
|