This commit is contained in:
2020-11-12 18:14:27 +00:00
parent 04b147b806
commit 98d0c117a4
5 changed files with 39 additions and 4 deletions

View File

@@ -272,6 +272,7 @@
:rules="[form().decimalValid(this, 'latitude')]"
:error-messages="form().serverErrors(this, 'latitude')"
@input="fieldValueChanged('latitude')"
:precision="6"
></gz-decimal>
</v-col>
@@ -292,6 +293,7 @@
:rules="[form().decimalValid(this, 'longitude')]"
:error-messages="form().serverErrors(this, 'longitude')"
@input="fieldValueChanged('longitude')"
:precision="6"
></gz-decimal>
</v-col>
@@ -970,6 +972,23 @@ function generateMenu(vm) {
key: FORM_KEY + ":duplicate",
vm: vm
});
menuOptions.menuItems.push({
title: "View on map",
icon: "$ayiMapMarked",
key: FORM_KEY + ":geoview",
vm: vm
});
if (navigator.geolocation) {
// geolocation is available
menuOptions.menuItems.push({
title: "Set to current location",
icon: "$ayiMapMarker",
key: FORM_KEY + ":geocapture",
vm: vm
});
}
}
window.$gz.eventBus.$emit("menu-change", menuOptions);

View File

@@ -102,7 +102,6 @@
:disabled="formState.readOnly"
:clearable="!formState.readOnly"
@click:clear="fieldValueChanged('deliveryAddress')"
:label="$ay.t('NotifyDeliveryAddress')"
:rules="[form().required(this, 'deliveryAddress')]"
:error-messages="form().serverErrors(this, 'deliveryAddress')"