Logic improvements, move stat blocks to right side
This commit is contained in:
parent
ad6e9f076b
commit
bf287c45d6
5 changed files with 27 additions and 32 deletions
|
@ -50,7 +50,7 @@ export default ({ className }: PowerButtonProps) => {
|
|||
</Dialog.Confirm>
|
||||
<Can action={'control.start'}>
|
||||
<Button
|
||||
className={'w-full sm:w-24'}
|
||||
className={'flex-1'}
|
||||
disabled={status !== 'offline'}
|
||||
onClick={onButtonClick.bind(this, 'start')}
|
||||
>
|
||||
|
@ -58,17 +58,13 @@ export default ({ className }: PowerButtonProps) => {
|
|||
</Button>
|
||||
</Can>
|
||||
<Can action={'control.restart'}>
|
||||
<Button.Text
|
||||
className={'w-full sm:w-24'}
|
||||
disabled={!status}
|
||||
onClick={onButtonClick.bind(this, 'restart')}
|
||||
>
|
||||
<Button.Text className={'flex-1'} disabled={!status} onClick={onButtonClick.bind(this, 'restart')}>
|
||||
Restart
|
||||
</Button.Text>
|
||||
</Can>
|
||||
<Can action={'control.stop'}>
|
||||
<Button.Danger
|
||||
className={'w-full sm:w-24'}
|
||||
className={'flex-1'}
|
||||
disabled={status === 'offline'}
|
||||
onClick={onButtonClick.bind(this, killable ? 'kill' : 'stop')}
|
||||
>
|
||||
|
|
Reference in a new issue