Skip to content

Commit

Permalink
rename AddOrganizer to AddUiTdatabankOrganizer
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVHG committed Aug 5, 2024
1 parent f73dc82 commit 304bedc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions app/Nova/Resources/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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')
Expand Down
1 change: 0 additions & 1 deletion app/Nova/Resources/UiTdatabankOrganizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 304bedc

Please sign in to comment.