This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
@@@@@@@@@@@@@@@ ROADMAP STAGE 6 - "REALITY" All in on porting over all the real objects from v7
|
||||
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
@change="updateValue"
|
||||
v-currency="{
|
||||
currency: null,
|
||||
locale: languageName
|
||||
locale: languageName,
|
||||
precision: precision
|
||||
}"
|
||||
:readonly="readonly"
|
||||
:disabled="disabled"
|
||||
@@ -42,7 +43,8 @@ export default {
|
||||
error: {
|
||||
type: String,
|
||||
required: false
|
||||
}
|
||||
},
|
||||
precision: { type: Number, default: undefined }
|
||||
},
|
||||
computed: {
|
||||
currencyValue() {
|
||||
|
||||
@@ -105,6 +105,8 @@ import {
|
||||
faLink,
|
||||
faListOl,
|
||||
faListUl,
|
||||
faMapMarkerAlt,
|
||||
faMapMarkedAlt,
|
||||
faMinus,
|
||||
faMinusSquare,
|
||||
faMoon,
|
||||
@@ -253,6 +255,8 @@ library.add(
|
||||
faLink,
|
||||
faListOl,
|
||||
faListUl,
|
||||
faMapMarkerAlt,
|
||||
faMapMarkedAlt,
|
||||
faMinus,
|
||||
faMinusSquare,
|
||||
faMoon,
|
||||
@@ -788,6 +792,18 @@ const CUSTOM_ICONS = {
|
||||
icon: ["fas", "list-ul"]
|
||||
}
|
||||
},
|
||||
ayiMapMarker: {
|
||||
component: FontAwesomeIcon,
|
||||
props: {
|
||||
icon: ["fas", "map-marker-alt"]
|
||||
}
|
||||
},
|
||||
ayiMapMarked: {
|
||||
component: FontAwesomeIcon,
|
||||
props: {
|
||||
icon: ["fas", "map-marked-alt"]
|
||||
}
|
||||
},
|
||||
ayiMinus: {
|
||||
component: FontAwesomeIcon,
|
||||
props: {
|
||||
|
||||
@@ -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