Little bit better UI for suspended

This commit is contained in:
Dane Everitt 2020-04-25 17:59:46 -07:00
parent c4f4f1f5c8
commit e2e82b9bf3
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
1 changed files with 3 additions and 3 deletions

View File

@ -78,16 +78,16 @@ export default ({ server, className }: { server: Server; className: string | und
!statsError ?
<SpinnerOverlay size={'tiny'} visible={true} backgroundOpacity={0.25}/>
:
(server.isSuspended || server.isInstalling) ?
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'}
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
{server.isSuspended ? 'Suspended' : 'Connection Error'}
</span>
</div>
: