landscape: hide 'promote to admin' on pending patp
Fixes urbit/landscape#694
@@ -386,9 +386,9 @@ function Participant(props: {
{(contact.patp !== window.ship) && (<StatelessAsyncAction onClick={onKick} bg="transparent">
<Text color="red">Kick from {title}</Text>
</StatelessAsyncAction>)}
- <StatelessAsyncAction onClick={onPromote} bg="transparent">
+ {!contact.pending && <StatelessAsyncAction onClick={onPromote} bg="transparent">
Promote to Admin
- </StatelessAsyncAction>
+ </StatelessAsyncAction>}
</>
)}
</>
