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

View file

@ -78,16 +78,16 @@ export default ({ server, className }: { server: Server; className: string | und
!statsError ? !statsError ?
<SpinnerOverlay size={'tiny'} visible={true} backgroundOpacity={0.25}/> <SpinnerOverlay size={'tiny'} visible={true} backgroundOpacity={0.25}/>
: :
(server.isSuspended || server.isInstalling) ? server.isInstalling ?
<div className={'flex-1 text-center'}> <div className={'flex-1 text-center'}>
<span className={'bg-neutral-500 rounded px-2 py-1 text-neutral-100 text-xs'}> <span className={'bg-neutral-500 rounded px-2 py-1 text-neutral-100 text-xs'}>
{server.isSuspended ? 'Suspended' : 'Installing'} Installing
</span> </span>
</div> </div>
: :
<div className={'flex-1 text-center'}> <div className={'flex-1 text-center'}>
<span className={'bg-red-500 rounded px-2 py-1 text-red-100 text-xs'}> <span className={'bg-red-500 rounded px-2 py-1 text-red-100 text-xs'}>
Connection Error {server.isSuspended ? 'Suspended' : 'Connection Error'}
</span> </span>
</div> </div>
: :