Skip to content

feat: user cannot delete himself from team#357

Open
7eliassen wants to merge 1 commit into
mainfrom
feat/user-cannot-remove-himself
Open

feat: user cannot delete himself from team#357
7eliassen wants to merge 1 commit into
mainfrom
feat/user-cannot-remove-himself

Conversation

@7eliassen

Copy link
Copy Markdown
Contributor

Prevent a user from removing themselves from the note's team member list.

Changes

  • The "Remove" context menu item is now only shown for team members whose email does not match the current user's email

  • The popover button is only shown when there is at least one menu item to display

@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codex-ui Ready Ready Preview, Comment Jul 9, 2026 2:26pm

Comment on lines +42 to +44
const menuItems: ContextMenuItem[] = [];

if (props.teamMember.user.email !== user.value?.email) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make computed property instead, thus we can handle user value change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants