Open stravid87 opened 1 month ago
Create dynamic navigation buttons ("Next" and "Previous") in the Vue application that adapt based on the user's current page.
pageChange
event whenever the user navigates to a new page.Implement Dynamic Navigation Using Mitt
Create dynamic navigation buttons ("Next" and "Previous") in the Vue application that adapt based on the user's current page.
Acceptance Criteria
- Event Bus: Create an event bus using Mitt instead of PINIA to handle page change events.
- Route Change Handling: Emit a
pageChange
event whenever the user navigates to a new page.- Dynamic Logic: Update the navigation component to show the "Previous" button only if not on the first page and the "Next" button only if not on the last page.
- Code Quality: Ensure adherence to Vue best practices.
@stravid87 Can I move this task to Specification Done with this description?
Description Currently the forward / back buttons of the application are hard coded.
I feel like Pinia could be used to maintain the state of the user's current location so that these could be dynamically coded.
Acceptance Criteria