This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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')"
|
||||
|
||||
Reference in New Issue
Block a user