feat: add type property to ContextMenu and set delete message item to danger

This commit is contained in:
SauceyRed 2025-08-03 20:28:14 +02:00
parent fbb72919c3
commit 7f98992839
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7
3 changed files with 7 additions and 4 deletions

View file

@ -1,6 +1,8 @@
<template>
<div id="context-menu">
<button v-for="item of props.menuItems" class="context-menu-item" @click="runCallback(item)">
<button v-for="item of props.menuItems" class="context-menu-item"
:class="'context-menu-item-' + item.type"
@click="runCallback(item)">
{{ item.name }} <Icon v-if="item.icon" :name="item.icon" />
</button>
</div>