Skip to content

Commit

Permalink
Update PowerButtons.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kokofixcomputers authored Oct 6, 2024
1 parent 81b90ed commit 374f8a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions resources/scripts/components/server/console/PowerButtons.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useEffect, useState } from 'react';
import { Button } from '@/components/elements/button/index';
import * as Icon from 'react-feather';
import Can from '@/components/elements/Can';
import { ServerContext } from '@/state/server';
import { PowerAction } from '@/components/server/console/ServerConsoleContainer';
Expand Down Expand Up @@ -54,12 +55,12 @@ export default ({ className }: PowerButtonProps) => {
disabled={status !== 'offline'}
onClick={onButtonClick.bind(this, 'start')}
>
Start
<Icon.Play className="mr-2" /> Start

Check failure on line 58 in resources/scripts/components/server/console/PowerButtons.tsx

View workflow job for this annotation

GitHub Actions / TypeScript

Replace `"mr-2"` with `'mr-2'`
</Button>
</Can>
<Can action={'control.restart'}>
<Button.Text className={'flex-1'} disabled={!status} onClick={onButtonClick.bind(this, 'restart')}>
Restart
<Icon.RefreshCcw className="mr-2" /> Restart

Check failure on line 63 in resources/scripts/components/server/console/PowerButtons.tsx

View workflow job for this annotation

GitHub Actions / TypeScript

Replace `"mr-2"` with `'mr-2'`
</Button.Text>
</Can>
<Can action={'control.stop'}>
Expand All @@ -68,7 +69,7 @@ export default ({ className }: PowerButtonProps) => {
disabled={status === 'offline'}
onClick={onButtonClick.bind(this, killable ? 'stop' : 'stop')}
>
{killable ? 'Stop' : 'Stop'}
<Icon.Square className="mr-2" /> {killable ? 'Stop' : 'Stop'}

Check failure on line 72 in resources/scripts/components/server/console/PowerButtons.tsx

View workflow job for this annotation

GitHub Actions / TypeScript

Replace `"mr-2"` with `'mr-2'`
</Button.Danger>
</Can>
<Can action={'control.kill'}>
Expand All @@ -77,7 +78,7 @@ export default ({ className }: PowerButtonProps) => {
disabled={status === 'offline'}
onClick={onButtonClick.bind(this, killable ? 'kill' : 'kill')}
>
{killable ? 'Kill' : 'Kill'}
<Icon.Zap className="mr-2" /> {killable ? 'Kill' : 'Kill'}

Check failure on line 81 in resources/scripts/components/server/console/PowerButtons.tsx

View workflow job for this annotation

GitHub Actions / TypeScript

Replace `"mr-2"` with `'mr-2'`
</Button.Danger>
</Can>
</div>
Expand Down

0 comments on commit 374f8a8

Please sign in to comment.