Skip to content

Conversation

@nog1potje
Copy link

When selecting the 'tickets' view, the main body of the screen remains empty, see the issue mentioned here: #81

Possibly this has to do with installing Traq into a subfolder? I had Claude look into it as I am unfamiliar in this code base, and that gave me these reasons:

  1. Vue Router missing base URL (src/assets/traq.ts)
    The Vue Router was created without a base path, so it couldn't match routes when Traq is installed in a subdirectory.

  2. Auth/project data not loaded on initial page load (src/assets/App.vue)
    The watch on route params didn't have { immediate: true }, so auth.getUser() and currentProject.getProject() were never called on initial page load - only when navigating between routes.

  3. Tickets never fetched on component mount (src/assets/ticket-listing/TicketListing.vue)
    The onMounted hook fetched custom fields but never called getTickets(). There was a broken watch that was supposed to trigger this but never worked:

These changes fix the issue for me, though I'm pretty sure the changes to package-lock.json are unnecessary.

Thanks for making Traq, hope this helps in any way!

cursoragent and others added 3 commits January 8, 2026 18:53
This change moves the `getTickets()` call to be inside the `onMounted` hook, ensuring that custom fields are loaded before attempting to fetch tickets. This prevents potential issues with missing data.

Co-authored-by: jasper <jasper@getbentgames.com>
…outer history

Co-authored-by: jasper <jasper@getbentgames.com>
Co-authored-by: jasper <jasper@getbentgames.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants