Skip to content

Commit

Permalink
Use kebab case for these
Browse files Browse the repository at this point in the history
  • Loading branch information
lancepioch committed Dec 9, 2024
1 parent 5d313a3 commit d795c0c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Filament/Server/Pages/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function getColumns(): int|string|array
return 3;
}

#[On('powerChanged')]
#[On('power-changed')]
public function powerChanged(string $state): void
{
$this->status = ContainerStatus::from($state);
Expand Down
2 changes: 1 addition & 1 deletion app/Filament/Server/Widgets/ServerConsole.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function enter(): void
}
}

#[On('storeStats')]
#[On('store-stats')]
public function storeStats(string $data): void
{
$data = json_decode($data);
Expand Down
2 changes: 1 addition & 1 deletion app/Livewire/ServerConflictBanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function mount(): void
$this->server = Filament::getTenant();

Check failure on line 16 in app/Livewire/ServerConflictBanner.php

View workflow job for this annotation

GitHub Actions / PHPStan

Property App\Livewire\ServerConflictBanner::$server (App\Models\Server|null) does not accept Illuminate\Database\Eloquent\Model|null.
}

#[On('powerChanged')]
#[On('power-changed')]
public function refresh(): void
{
$this->server->fresh();
Expand Down
4 changes: 2 additions & 2 deletions resources/views/filament/components/server-console.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class="w-full focus:outline-none focus:ring-0 border-none"
case 'status':
handlePowerChangeEvent(args[0]);
$wire.dispatch('powerChanged', {state: args[0]})
$wire.dispatch('power-changed', {state: args[0]})
break;
case 'transfer status':
handleTransferStatus(args[0]);
Expand All @@ -135,7 +135,7 @@ class="w-full focus:outline-none focus:ring-0 border-none"
handleDaemonErrorOutput(args[0]);
break;
case 'stats':
$wire.dispatchSelf('storeStats', { data: args[0] });
$wire.dispatchSelf('store-stats', { data: args[0] });
break;
case 'auth success':
socket.send(JSON.stringify({
Expand Down

0 comments on commit d795c0c

Please sign in to comment.