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

Show modal to alert users the unsaved change in general settings page #721

Merged
merged 3 commits into from
May 3, 2024

Conversation

a110605
Copy link
Contributor

@a110605 a110605 commented Apr 29, 2024

Current general settings page are too long that users easily forget to "save" the settings change before leaving this page.

This PR

  • sticky save button at the bottom
  • show modal to alert users there are some unsaved changes when changing the route.

issus : longhorn/longhorn#7497

after.mov

@a110605
Copy link
Contributor Author

a110605 commented Apr 29, 2024

We can consider using Tab to group General / Snapshot / Scheduling / Danger Zone as each categories to avoid too long settings page.

Refer :https://ant.design/components/tabs

@a110605 a110605 self-assigned this Apr 29, 2024
@a110605 a110605 requested review from FrankYang0529 and innobead and removed request for FrankYang0529 April 29, 2024 09:47
@a110605 a110605 changed the title General setting 7497 Show modal to alert users the unsaved change in general settings page Apr 29, 2024
@a110605 a110605 requested review from derekbit and scures April 29, 2024 09:51
Signed-off-by: andy.lee <andy.lee@suse.com>
Signed-off-by: andy.lee <andy.lee@suse.com>
Signed-off-by: andy.lee <andy.lee@suse.com>
Copy link
Member

@derekbit derekbit left a comment

Choose a reason for hiding this comment

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

LGTM

@derekbit derekbit merged commit 26fb6b4 into longhorn:master May 3, 2024
5 checks passed
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