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

fix: enable name column on partitions table on side panel close #5344

Conversation

Jay-Topher
Copy link
Contributor

Done

  • Enable name column on partitions table on side panel close

QA steps

  • Goto /machine/:id/storage for a ready machine
  • Select a disk under the available disks and partitions table
  • Click on create volume group
  • Ensure that the name column of the table is disabled
  • Close the side panel and ensure that the name column is enabled

Fixes

Fixes: Dev: Enable name column after side panel is closed

Screenshots

image
image

Notes

@webteam-app
Copy link

Demo starting at https://maas-ui-5344.demos.haus

Copy link
Contributor

@ndv99 ndv99 left a comment

Choose a reason for hiding this comment

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

One more change, and I think this should be good to merge.

@@ -286,8 +287,9 @@ const AvailableStorageTable = ({
const dispatch = useDispatch();
const [expanded, setExpanded] = useState<Expanded | null>(null);
const [selected, setSelected] = useState<(Disk | Partition)[]>([]);
const [bulkAction, setBulkAction] = useState<BulkAction | null>(null);
const [, setBulkAction] = useState<BulkAction | null>(null);
Copy link
Contributor

Choose a reason for hiding this comment

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

If bulkAction was only used for deciding whether or not actions should be disabled, and that value is now unneeded, we should also be able to remove all calls for setBulkAction without any side effects, and then we can remove this state entirely.

@Jay-Topher Jay-Topher force-pushed the MAASENG-2799-enable-name=column-on-close-sidepanel branch from 7b3efdc to e58a1c7 Compare March 13, 2024 12:33
@Jay-Topher Jay-Topher requested a review from ndv99 March 13, 2024 12:34
Copy link
Contributor

@ndv99 ndv99 left a comment

Choose a reason for hiding this comment

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

LGTM

@Jay-Topher Jay-Topher merged commit 77f7792 into canonical:main Mar 13, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants