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

Storage UI: Delete Partition (in proposal; trash-can icon) #1915

Open
wants to merge 3 commits into
base: storage-config-ui
Choose a base branch
from

Conversation

mvidner
Copy link
Contributor

@mvidner mvidner commented Jan 17, 2025

Problem

Making the trash-can icon work

deleteme_C3_A7

Solution

  • delete the item from the list (via configModel.Config)
  • ask for confirmation
  • check that the partition is not mandatory

Testing

  • Added a new unit test
  • Tested manually

Screenshots

If the fix affects the UI attach some screenshots here.

@mvidner mvidner changed the title WIP just log onClick the Delete icon Storage UI: Delete Partition (in proposal; trash-can icon) Jan 17, 2025
that is, without asking for confirmation or checking if it is mandatory.

split out PartitionMenuItem, because eslint said:
607:40  error  React Hook "usePartition" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function  react-hooks/rules-of-hooks
apparently a copy-paste bug in the prototype

BTW shouldn't we use _(translations) more?
@mvidner mvidner force-pushed the delete-proposed-partition branch from bfc96fb to f2f32f3 Compare January 17, 2025 15:10
@mvidner mvidner marked this pull request as ready for review January 17, 2025 15:11
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.

1 participant