diff --git a/app/Nova/Actions/AddOrganizer.php b/app/Nova/Actions/AddUiTdatabankOrganizer.php similarity index 93% rename from app/Nova/Actions/AddOrganizer.php rename to app/Nova/Actions/AddUiTdatabankOrganizer.php index e954013e3..c6ee577a8 100644 --- a/app/Nova/Actions/AddOrganizer.php +++ b/app/Nova/Actions/AddUiTdatabankOrganizer.php @@ -18,7 +18,7 @@ use Laravel\Nova\Http\Requests\NovaRequest; use Ramsey\Uuid\Uuid; -final class AddOrganizer extends Action +final class AddUiTdatabankOrganizer extends Action { use InteractsWithQueue; use Queueable; @@ -29,7 +29,7 @@ public function __construct(private readonly UiTdatabankOrganizerRepository $org public function handle(ActionFields $fields, Collection $integrations): ActionResponse { - Log::info('AddOrganizer action started.'); + Log::info('AddUiTdatabankOrganizer action started.'); /** @var IntegrationModel $integration */ $integration = $integrations->first(); diff --git a/app/Nova/Resources/Integration.php b/app/Nova/Resources/Integration.php index 48884d260..1a91d0fca 100644 --- a/app/Nova/Resources/Integration.php +++ b/app/Nova/Resources/Integration.php @@ -15,7 +15,7 @@ use App\Keycloak\KeycloakConfig; use App\Nova\Actions\ActivateIntegration; use App\Nova\Actions\ActivateUitpasIntegration; -use App\Nova\Actions\AddOrganizer; +use App\Nova\Actions\AddUiTdatabankOrganizer; use App\Nova\Actions\ApproveIntegration; use App\Nova\Actions\Auth0\CreateMissingAuth0Clients; use App\Nova\Actions\BlockIntegration; @@ -283,7 +283,7 @@ public function actions(NovaRequest $request): array ->canSee(fn (Request $request) => $request instanceof ActionRequest || $this->canBeUnblocked()) ->canRun(fn (Request $request, IntegrationModel $model) => $model->canBeUnblocked()), - (new AddOrganizer(App::make(UiTdatabankOrganizerRepository::class))) + (new AddUiTdatabankOrganizer(App::make(UiTdatabankOrganizerRepository::class))) ->exceptOnIndex() ->confirmText('Are you sure you want to add an organizer?') ->confirmButtonText('Add') diff --git a/app/Nova/Resources/UiTdatabankOrganizer.php b/app/Nova/Resources/UiTdatabankOrganizer.php index 1ed47844a..7a47511f1 100644 --- a/app/Nova/Resources/UiTdatabankOrganizer.php +++ b/app/Nova/Resources/UiTdatabankOrganizer.php @@ -4,7 +4,6 @@ namespace App\Nova\Resources; -use App\Domain\Integrations\Models\UiTdatabankOrganizerModel; use App\Nova\Resource; use Laravel\Nova\Fields\Field; use Laravel\Nova\Fields\HasMany;