mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
add event_data to goal.
This commit is contained in:
parent
76cab03bb2
commit
79a93ed9fc
7 changed files with 231 additions and 48 deletions
|
|
@ -28,9 +28,23 @@ const schema = {
|
|||
.array()
|
||||
.of(
|
||||
yup.object().shape({
|
||||
type: yup.string().required(),
|
||||
type: yup
|
||||
.string()
|
||||
.matches(/url|event|event-data/i)
|
||||
.required(),
|
||||
value: yup.string().required(),
|
||||
goal: yup.number().required(),
|
||||
operator: yup
|
||||
.string()
|
||||
.matches(/count|sum|average/i)
|
||||
.when('type', {
|
||||
is: 'eventData',
|
||||
then: yup.string().required(),
|
||||
}),
|
||||
property: yup.string().when('type', {
|
||||
is: 'eventData',
|
||||
then: yup.string().required(),
|
||||
}),
|
||||
}),
|
||||
)
|
||||
.min(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue