mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-25 15:54:45 +02:00
Little bit better UI for suspended
This commit is contained in:
parent
c4f4f1f5c8
commit
e2e82b9bf3
@ -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>
|
||||||
:
|
:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user