EDI attr sets: disallow whitespace-only input for label
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 3 Jun 2021 14:53:14 +0000 (10:53 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 3 Jun 2021 14:53:14 +0000 (10:53 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/admin/acq/edi_attr_set/edi-attr-set-edit-dialog.component.html

index 81e7cc3..f5cb3e9 100644 (file)
@@ -15,7 +15,7 @@
         </label>
         <div class="col-sm-3">
           <input class="form-control" type="text" id="attr-set-label"
-            required="required"
+            required="required" pattern="[\s\S]*\S[\s\S]*"
             [ngModel]="attrSet.label()" name="label"
             (ngModelChange)="attrSet.label($event)">
         </div>