mirror of
https://github.com/dfpc-coe/CloudTAK.git
synced 2025-12-22 13:47:22 +00:00
Ensure Radial is fully closed
This commit is contained in:
@@ -125,7 +125,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted, onUnmounted, nextTick, useTemplateRef } from 'vue';
|
||||
import { ref, onMounted, nextTick, useTemplateRef } from 'vue';
|
||||
import { OriginMode } from '../../../base/cot.ts';
|
||||
import Subscription from '../../../base/subscription.ts';
|
||||
import RadialMenu from './RadialMenu.js';
|
||||
@@ -147,10 +147,6 @@ const menuRef = useTemplateRef('radial-menu');
|
||||
const menuItems = ref([]);
|
||||
const menu = ref();
|
||||
|
||||
onUnmounted(() => {
|
||||
emit('close')
|
||||
});
|
||||
|
||||
onMounted(async () => {
|
||||
await genMenuItems();
|
||||
|
||||
|
||||
@@ -51,9 +51,8 @@ onMounted(() => {
|
||||
.addTo(mapStore.map);
|
||||
|
||||
popup.on('close', () => {
|
||||
if (mapStore.select.feats) {
|
||||
if (mapStore.select.feats.length) {
|
||||
mapStore.select.feats = [];
|
||||
popup.remove();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -594,6 +594,7 @@ export const useMapStore = defineStore('cloudtak', {
|
||||
if (this.radial.mode) {
|
||||
// Clicking away closes the radial menu
|
||||
this.radial.mode = undefined;
|
||||
this.radial.cot = undefined;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user