Skip to content

Commit

Permalink
FIxed: Longitude/latitude will not take characters and can take '0'/.…
Browse files Browse the repository at this point in the history
… /negative values(hotwax#255)
  • Loading branch information
R-Sourabh committed May 2, 2024
1 parent 685d6b3 commit efc65fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/FacilityGeoPointModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
</ion-button>
</ion-item>
<ion-item>
<ion-input label-placement="floating" :label="translate('Latitude')" v-model="geoPoint.latitude" />
<ion-input label-placement="floating" :label="translate('Latitude')" type="number" v-model="geoPoint.latitude"/>
</ion-item>
<ion-item>
<ion-input label-placement="floating" :label="translate('Longitude')" v-model="geoPoint.longitude" />
<ion-input label-placement="floating" :label="translate('Longitude')" type="number" v-model="geoPoint.longitude"/>
</ion-item>
</form>
</ion-content>
Expand Down
4 changes: 2 additions & 2 deletions src/views/FacilityDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@
<ion-icon slot="end" :icon="addCircleOutline" />
</ion-button>
</ion-card>

{{ postalAddress }}
<ion-card>
<ion-card-header>
<ion-card-title>
{{ translate("Latitude & Longitude") }}
</ion-card-title>
</ion-card-header>
<template v-if="postalAddress?.latitude">
<template v-if="postalAddress.latitude || postalAddress.latitude == 0">
<ion-card-content>
{{ translate("These values are used to help customers lookup how close they are to your stores when they are finding nearby stores.") }}
</ion-card-content>
Expand Down

0 comments on commit efc65fc

Please sign in to comment.