Skip to content

Conversation

@LarsvanDartel
Copy link
Contributor

Description

Add prop for the confirm dialog box to define the accept label, since it was used across the project with different meanings, all using the label 'Quit'

Related issues/external references

#140

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Style (Change that do not affect the functionality of the code)

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the confirm dialog component to support customizable accept button labels instead of hardcoding "Quit" for all dialogs. This addresses issue #140 where the delete integration confirmation dialog incorrectly showed "Quit" instead of "Delete".

Changes:

  • Added acceptLabel as a required prop to ConfirmWrapper component
  • Updated all 7 usages of ConfirmWrapper across the codebase with appropriate labels ("Quit", "Delete", or "Reset")
  • Fixed inconsistent import name from DialogWrapper to ConfirmWrapper in TimeTrailRaceModeView

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/components/prime/ConfirmWrapper.vue Added acceptLabel prop and removed hardcoded "Quit" label
src/views/Modes/TimeTrailRaceModeView.vue Added acceptLabel="Quit" and fixed import name from DialogWrapper to ConfirmWrapper
src/views/Modes/CenturionModeView.vue Added acceptLabel="Quit" for centurion quit confirmation
src/components/timed-events/TimedEventDeleteButton.vue Added acceptLabel="Delete" for timed event deletion
src/components/poster/StaticPosterButtonDelete.vue Added acceptLabel="Delete" for poster deletion
src/components/modes/time-trail-race/TimeTrailRaceStepper.vue Added acceptLabel="Reset" for trail race reset
src/components/integrations/IntegrationDeleteButton.vue Added acceptLabel="Delete" for integration deletion (fixes issue #140)
src/components/audio/SpotifyUserDeleteButton.vue Added acceptLabel="Delete" for Spotify user deletion

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SuperVK SuperVK merged commit 94c1724 into GEWIS:develop Feb 5, 2026
7 of 8 checks passed
@LarsvanDartel LarsvanDartel deleted the fix/confirmation-dialog-label branch February 6, 2026 22:08
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.

[bug]: Confirmation dialogue to delete an integration user has improper labels.

2 participants