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