Skip to content

Events/Edit.vue receives endpoint-subscription data but never renders it — no way to manage an event's endpoints from the Edit page #150

Description

@morcen

What: The backend loads and passes endpoint-subscription data to the Edit page, but the page never uses it.

Where:

  • app/Http/Controllers/DashboardController.php:61-70 (editEvent) — does $event->load('endpoints') and passes 'endpoints' => $endpoints to Inertia::render('Events/Edit', ...)
  • resources/js/Pages/Events/Edit.vue:117 — declares endpoints: Array in defineProps but never references it anywhere in the template or script
  • resources/js/Pages/Events/Index.vue:118 — links to this page via <DropdownLink :href="route('events.edit', event.id)">Edit Event</DropdownLink>, so the page is reachable from the real UI

Why it matters: Endpoint-subscription management (toggleEndpointSubscription/syncEndpoints) currently only exists in Events/Index.vue's separate inline "Manage Endpoints" modal. A user who navigates to the dedicated Edit Event page has no way to see or change which endpoints the event is subscribed to, even though the backend clearly intends to support it there (it loads and passes the data specifically for this page).

Suggested fix: Either render the endpoint list with subscribe/unsubscribe controls on Events/Edit.vue (posting to the events.endpoints route), or drop the unused endpoints prop if this page is intentionally scoped to metadata only, and document that endpoint management only lives in the Index modal.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions