feat: replace context menu items splicing with implementation of context menu item sections
This commit is contained in:
parent
c9bbd10af1
commit
0f02142eb1
9 changed files with 85 additions and 50 deletions
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="member-item" @click.prevent="showModalPopup" tabindex="0" @contextmenu="showContextMenu($event, contextMenu, menuItems)">
|
||||
<div class="member-item" @click.prevent="showModalPopup" tabindex="0" @contextmenu="showContextMenu($event, contextMenu, menuSections)">
|
||||
<Avatar :profile="props.member" class="member-avatar"/>
|
||||
<span class="member-display-name" :style="`color: ${generateIrcColor(props.member.user.uuid)}`">
|
||||
{{ getDisplayName(props.member) }}
|
||||
|
@ -21,7 +21,7 @@ const props = defineProps<{
|
|||
member: GuildMemberResponse
|
||||
}>();
|
||||
|
||||
const menuItems = await createMemberContextMenuItems(props.member, props.member.guild_uuid);
|
||||
const menuSections = await createMemberContextMenuItems(props.member, props.member.guild_uuid);
|
||||
|
||||
const modalPopupVisible = ref<boolean>(false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue