From 103547ba3ba5eb8566e607de35f0c86bf8357ae9 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Tue, 13 Apr 2021 15:42:53 -0400 Subject: [PATCH] landscape: hide 'promote to admin' on pending patp Fixes urbit/landscape#694 --- .../views/landscape/components/Participants.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/interface/src/views/landscape/components/Participants.tsx b/pkg/interface/src/views/landscape/components/Participants.tsx index b9179ce72..9080005e1 100644 --- a/pkg/interface/src/views/landscape/components/Participants.tsx +++ b/pkg/interface/src/views/landscape/components/Participants.tsx @@ -295,7 +295,7 @@ function Participant(props: { const resource = resourceFromPath(association.group); if(contact.pending) { await api.groups.changePolicy( - resource, + resource, { invite: { removeInvites: [`~${contact.patp}`] } } ); } else { @@ -305,12 +305,12 @@ function Participant(props: { const avatar = contact?.avatar !== null && !hideAvatars ? ( - ) : ( @@ -386,9 +386,9 @@ function Participant(props: { {(contact.patp !== window.ship) && ( Kick from {title} )} - + {!contact.pending && Promote to Admin - + } )}