More improvements to context menu #69
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
WIP
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: gorb/frontend#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "context-menu-ban-kick"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #66
looks good, but be careful when merging with the message component changes i made in #65
Add ban and kick to context menuto wip: Add ban and kick to context menuwip: Add ban and kick to context menuto Add ban and kick to context menu@ -0,0 +15,4 @@
<script lang="ts" setup>
import Button from '../UserInterface/Button.vue';
const props = defineProps<{ actionName: string, displayName?: string, callback: CallableFunction, onClose: () => void, onCancel: () => void }>();
i don't think "displayName" is the correct term here, assuming this is a generic confirmation screen, either rename the prop to "target" or something, or rename the modal
Are you saying
displayName
isn't intuitive, or is it something else?well displayName seems wrong if you're talking about a server, or a role. I think of it has a member thing
Good point, I didn't think about that lmao
@ -0,0 +19,4 @@
console.log("[MENUITEM] member is not me");
if (hasPermission(me.value, Permission.KickMember)) {
console.log("[MENUITEM] has kick member permission");
menuItems.splice(Math.min(3, menuItems.length), 0, {
splicing like this seems really messy, there should really be a better way of doing this
The purpose was mainly to make sure they would be put in the same order, but yeah I should take another look at it. I already have an idea.
Example of when a menu has two sections:

Did you even look through the changes??
@sauceyred wrote in #69 (comment):
yeah, only took 2 minutes
Alrighty then
Add ban and kick to context menuto More improvements to context menu