add directory state to console (#416)

This commit is contained in:
Saeed Vaziry
2025-01-01 14:52:27 -08:00
committed by GitHub
parent ba069a2db0
commit f5c9d6701b
7 changed files with 149 additions and 50 deletions

View File

@ -3,6 +3,7 @@
namespace App\Web\Pages\Servers\Console;
use App\Web\Pages\Servers\Page;
use Filament\Actions\Action;
class Index extends Page
{
@ -27,4 +28,16 @@ public function getWidgets(): array
[Widgets\Console::class, ['server' => $this->server]],
];
}
protected function getHeaderActions(): array
{
return [
Action::make('read-the-docs')
->label('Read the Docs')
->icon('heroicon-o-document-text')
->color('gray')
->url('https://vitodeploy.com/servers/console.html')
->openUrlInNewTab(),
];
}
}