Don't show an error in the listing if the server is still installing or suspended
This commit is contained in:
parent
f45c03a449
commit
c4f4f1f5c8
3 changed files with 18 additions and 5 deletions
|
@ -78,11 +78,18 @@ export default ({ server, className }: { server: Server; className: string | und
|
|||
!statsError ?
|
||||
<SpinnerOverlay size={'tiny'} visible={true} backgroundOpacity={0.25}/>
|
||||
:
|
||||
<div className={'flex-1 text-center'}>
|
||||
<span className={'bg-red-500 rounded px-2 py-1 text-red-100 text-xs'}>
|
||||
Connection Error
|
||||
</span>
|
||||
</div>
|
||||
(server.isSuspended || server.isInstalling) ?
|
||||
<div className={'flex-1 text-center'}>
|
||||
<span className={'bg-neutral-500 rounded px-2 py-1 text-neutral-100 text-xs'}>
|
||||
{server.isSuspended ? 'Suspended' : 'Installing'}
|
||||
</span>
|
||||
</div>
|
||||
:
|
||||
<div className={'flex-1 text-center'}>
|
||||
<span className={'bg-red-500 rounded px-2 py-1 text-red-100 text-xs'}>
|
||||
Connection Error
|
||||
</span>
|
||||
</div>
|
||||
:
|
||||
<React.Fragment>
|
||||
<div className={'flex-1 flex ml-4 justify-center'}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue