Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request]: fix: Modify Cancel button behavior on asset edit page to return to asset details #1569

Open
carlosvirreira opened this issue Jan 9, 2025 · 0 comments

Comments

@carlosvirreira
Copy link
Contributor

Contact Details

No response

Is your feature request related to a problem? Please describe?

When clicking 'Cancel' on the asset edit page, users are returned to the asset index/list view. This creates unnecessary navigation steps when users want to return to viewing the asset they were editing.

Describe the solution you'd like

Proposed Change

Update the Cancel button behavior to:

  • Return users directly to the asset details page they were previously editing
  • Maintain current 'Save' button behavior (staying on edit page to allow additional changes)

Rationale

This change will:

  • Improve UX by reducing unnecessary navigation steps
  • Maintain consistency with expected cancel behavior (return to previous view)
  • Keep the current save functionality that allows users to make incremental edits

Technical Notes

  • Update cancel button onClick handler to navigate to asset/:id instead of /assets
  • No changes needed to save button functionality
  • Ensure asset ID is properly preserved for navigation

Out of Scope

  • Save button behavior remains unchanged (stays on edit page)
  • No changes to form validation or data handling

Describe alternatives you've considered

No response

Additional context

No response

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

No branches or pull requests

1 participant