Added missing view on map menu item
This commit is contained in:
@@ -1721,7 +1721,17 @@ async function clickHandler(menuItem) {
|
||||
name: "svc-task-groups"
|
||||
});
|
||||
break;
|
||||
|
||||
case "geoview":
|
||||
window.$gz.util.viewGeoLocation({
|
||||
latitude: m.vm.obj.latitude,
|
||||
longitude: m.vm.obj.longitude,
|
||||
address: m.vm.obj.address || m.vm.obj.postAddress,
|
||||
city: m.vm.obj.city || m.vm.obj.postCity,
|
||||
region: m.vm.obj.region || m.vm.obj.postRegion,
|
||||
country: m.vm.obj.country || m.vm.obj.postCountry,
|
||||
postCode: m.vm.obj.postCode
|
||||
});
|
||||
break;
|
||||
default:
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-warning",
|
||||
@@ -1865,6 +1875,12 @@ function generateMenu(vm) {
|
||||
vm: vm
|
||||
});
|
||||
}
|
||||
menuOptions.menuItems.push({
|
||||
title: "GeoView",
|
||||
icon: "$ayiMapMarked",
|
||||
key: FORM_KEY + ":geoview",
|
||||
vm: vm
|
||||
});
|
||||
menuOptions.menuItems.push({ divider: true, inset: false });
|
||||
|
||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||
|
||||
@@ -1792,6 +1792,17 @@ async function clickHandler(menuItem) {
|
||||
id: m.vm.obj.fromCSRId
|
||||
});
|
||||
break;
|
||||
case "geoview":
|
||||
window.$gz.util.viewGeoLocation({
|
||||
latitude: m.vm.obj.latitude,
|
||||
longitude: m.vm.obj.longitude,
|
||||
address: m.vm.obj.address || m.vm.obj.postAddress,
|
||||
city: m.vm.obj.city || m.vm.obj.postCity,
|
||||
region: m.vm.obj.region || m.vm.obj.postRegion,
|
||||
country: m.vm.obj.country || m.vm.obj.postCountry,
|
||||
postCode: m.vm.obj.postCode
|
||||
});
|
||||
break;
|
||||
default:
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-warning",
|
||||
@@ -1939,6 +1950,12 @@ function generateMenu(vm) {
|
||||
vm: vm
|
||||
});
|
||||
}
|
||||
menuOptions.menuItems.push({
|
||||
title: "GeoView",
|
||||
icon: "$ayiMapMarked",
|
||||
key: FORM_KEY + ":geoview",
|
||||
vm: vm
|
||||
});
|
||||
menuOptions.menuItems.push({ divider: true, inset: false });
|
||||
|
||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||
|
||||
@@ -1955,6 +1955,17 @@ async function clickHandler(menuItem) {
|
||||
id: m.vm.obj.fromPMId
|
||||
});
|
||||
break;
|
||||
case "geoview":
|
||||
window.$gz.util.viewGeoLocation({
|
||||
latitude: m.vm.obj.latitude,
|
||||
longitude: m.vm.obj.longitude,
|
||||
address: m.vm.obj.address || m.vm.obj.postAddress,
|
||||
city: m.vm.obj.city || m.vm.obj.postCity,
|
||||
region: m.vm.obj.region || m.vm.obj.postRegion,
|
||||
country: m.vm.obj.country || m.vm.obj.postCountry,
|
||||
postCode: m.vm.obj.postCode
|
||||
});
|
||||
break;
|
||||
default:
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-warning",
|
||||
@@ -2105,6 +2116,13 @@ function generateMenu(vm) {
|
||||
vm: vm
|
||||
});
|
||||
}
|
||||
menuOptions.menuItems.push({
|
||||
title: "GeoView",
|
||||
icon: "$ayiMapMarked",
|
||||
key: FORM_KEY + ":geoview",
|
||||
vm: vm
|
||||
});
|
||||
|
||||
menuOptions.menuItems.push({ divider: true, inset: false });
|
||||
|
||||
let hasFromInsertDivider = false;
|
||||
|
||||
Reference in New Issue
Block a user