CalendarOwner: Any free entries must be emails so validator added.

This commit is contained in:
nathan 2022-07-07 14:15:00 -06:00
parent ed16ce52a2
commit 71d43b125e

View File

@ -10,6 +10,7 @@
import {Et2Select} from "../../api/js/etemplate/Et2Select/Et2Select";
import {css} from "@lion/core";
import {IsEmail} from "../../api/js/etemplate/Validators/IsEmail";
/**
* Select widget customised for calendar owner, which can be a user
@ -37,6 +38,9 @@ export class CalendarOwner extends Et2Select
super(...args);
this.searchUrl = "calendar_owner_etemplate_widget::ajax_search";
this.multiple = true;
// Any free entries must be email addresses
this.defaultValidators.push(new IsEmail());
}
/**