Skip to content

Commit

Permalink
feat(RightSidebar): Hide remove group for removed admin from group (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
przemvs authored Nov 4, 2024
1 parent 469f04e commit f8cb8f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ const getConversationActions = ({
},
},
{
condition: !isSingleUser && isTeam && roleRepository.canDeleteGroup(conversationEntity),
condition:
!isSingleUser &&
isTeam &&
roleRepository.canDeleteGroup(conversationEntity) &&
!conversationEntity.isSelfUserRemoved(),
item: {
click: () => actionsViewModel.deleteConversation(conversationEntity),
Icon: Icon.DeleteIcon,
Expand Down
4 changes: 4 additions & 0 deletions src/style/panel/panel.less
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@
color: var(--gray-70);
justify-self: flex-end;

.panel__action-item__summary & {
justify-self: flex-start;
}

&-title {
margin-bottom: 4px;
font-size: 0.875rem;
Expand Down

0 comments on commit f8cb8f7

Please sign in to comment.