💄 Enforce fields validator
This commit is contained in:
parent
f4e5c7e4d7
commit
67a7c3e03d
@ -87,9 +87,9 @@ export class PlaceCreateModalComponent {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
category: [null, Validators.required],
|
category: [null, Validators.required],
|
||||||
description: "",
|
description: null,
|
||||||
duration: "",
|
duration: [null, Validators.pattern("\\d+")],
|
||||||
price: "",
|
price: [null, Validators.pattern("[+-]?([0-9]*[.])?[0-9]+")],
|
||||||
allowdog: false,
|
allowdog: false,
|
||||||
visited: false,
|
visited: false,
|
||||||
image: null,
|
image: null,
|
||||||
|
|||||||
@ -66,7 +66,7 @@ export class TripCreateDayItemModalComponent {
|
|||||||
day_id: [null, Validators.required],
|
day_id: [null, Validators.required],
|
||||||
place: null,
|
place: null,
|
||||||
status: null,
|
status: null,
|
||||||
price: 0,
|
price: [null, Validators.pattern("[+-]?([0-9]*[.])?[0-9]+")],
|
||||||
lat: [
|
lat: [
|
||||||
"",
|
"",
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user