Skip to content

Commit

Permalink
Add default import url
Browse files Browse the repository at this point in the history
  • Loading branch information
RMartinOscar committed Feb 5, 2025
1 parent b8c1b68 commit 66989b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Filament/Components/Actions/ImportEggAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -46,6 +47,7 @@ protected function setUp(): void
TextInput::make('url')
->label('URL')
->hint('This URL should point to a single json file')
->default(fn (Egg $egg) => $egg->update_url)
->url(),
]),
]),
Expand Down

0 comments on commit 66989b1

Please sign in to comment.