From 06224e6a11bbab811a8edab24dbd39ac9479ff77 Mon Sep 17 00:00:00 2001 From: R-Sourabh Date: Thu, 2 May 2024 20:32:29 +0530 Subject: [PATCH] Updated: added check on zipcode & made Lat/Lon required fields(#255) --- src/components/FacilityGeoPointModal.vue | 12 ++++++++++-- src/views/FacilityDetails.vue | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/FacilityGeoPointModal.vue b/src/components/FacilityGeoPointModal.vue index 249c48c7..0dce1322 100644 --- a/src/components/FacilityGeoPointModal.vue +++ b/src/components/FacilityGeoPointModal.vue @@ -21,10 +21,14 @@ - + +
{{ translate("Latitude")}}*
+
- + +
{{ translate("Longitude")}}*
+
@@ -99,6 +103,10 @@ export default defineComponent({ modalController.dismiss() }, async generateLatLong() { + if(!this.geoPoint.postalCode) { + showToast("Please fill the required Zipcode") + return; + } this.isGeneratingLatLong = true const payload = { json: { diff --git a/src/views/FacilityDetails.vue b/src/views/FacilityDetails.vue index 0f486c20..337c4c1f 100644 --- a/src/views/FacilityDetails.vue +++ b/src/views/FacilityDetails.vue @@ -69,7 +69,7 @@ {{ translate("Latitude & Longitude") }} -