mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-13 11:45:45 +03:00
landscape: hide 'promote to admin' on pending patp
Fixes urbit/landscape#694
This commit is contained in:
parent
421dc97a64
commit
103547ba3b
@ -386,9 +386,9 @@ function Participant(props: {
|
|||||||
{(contact.patp !== window.ship) && (<StatelessAsyncAction onClick={onKick} bg="transparent">
|
{(contact.patp !== window.ship) && (<StatelessAsyncAction onClick={onKick} bg="transparent">
|
||||||
<Text color="red">Kick from {title}</Text>
|
<Text color="red">Kick from {title}</Text>
|
||||||
</StatelessAsyncAction>)}
|
</StatelessAsyncAction>)}
|
||||||
<StatelessAsyncAction onClick={onPromote} bg="transparent">
|
{!contact.pending && <StatelessAsyncAction onClick={onPromote} bg="transparent">
|
||||||
Promote to Admin
|
Promote to Admin
|
||||||
</StatelessAsyncAction>
|
</StatelessAsyncAction>}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
Loading…
Reference in New Issue
Block a user