Add default Egg import url (#972)

This commit is contained in:
MartinOscar 2025-02-07 15:38:25 +01:00 committed by GitHub
parent b8c1b68328
commit 77bf70b063
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@
namespace App\Filament\Components\Actions;
use App\Models\Egg;
use App\Services\Eggs\Sharing\EggImporterService;
use Exception;
use Filament\Actions\Action;
@ -46,6 +47,7 @@ class ImportEggAction extends Action
TextInput::make('url')
->label('URL')
->hint('This URL should point to a single json file')
->default(fn (Egg $egg) => $egg->update_url)
->url(),
]),
]),