feat: add runCallback function to handle closing removal of context menu before running callback
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful

This commit is contained in:
SauceyRed 2025-07-11 00:05:59 +02:00
parent 069d3392d2
commit 292bd64ed4
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7

View file

@ -1,5 +1,5 @@
<template>
<div v-for="item of menuItems" class="context-menu-item">
<div v-for="item of props.menuItems" class="context-menu-item" @click="runCallback(item)">
{{ item.name }}
</div>
</template>
@ -18,12 +18,9 @@ onMounted(() => {
});
function editMessage() {
//
}
function replyMessage(id: string) {
//
function runCallback(item: ContextMenuItem) {
removeContextMenu();
item.callback();
}
</script>