Skip to content

refactor: Node Power Confirmation#26

Merged
svenrademakers merged 4 commits intoturing-machines:mainfrom
barrenechea:power-confirmation
Jan 3, 2025
Merged

refactor: Node Power Confirmation#26
svenrademakers merged 4 commits intoturing-machines:mainfrom
barrenechea:power-confirmation

Conversation

@barrenechea
Copy link
Contributor

Hey! Here's a new implementation for handling the node power operations (on/off/restart).

This aims to:

  • Allow the On/Off and Restart button to operate without being in Edit Mode.
  • To display a confirmation dialog by default.
  • Allow the user to choose to not display the confirmation dialog if desired.

Fixes #22
Fixes #24

Powering on a node (similar dialog for powering off):
Screenshot 2025-01-02 at 10 43 13 AM

Restarting a node:
Screenshot 2025-01-02 at 10 43 51 AM

If the checkbox is checked, the dialog would not appear in subsequent operations. Note that the users' preference is stored in the browser.

I didn't really considered this as much of a "new feature" so I just bumped the patch version. Let me know what you think @svenrademakers !

@svenrademakers
Copy link
Collaborator

I like the additions. I thought it was not that intuitive to first have to go to edit before you could operate power. great job

@svenrademakers svenrademakers merged commit 5b83ddc into turing-machines:main Jan 3, 2025
3 checks passed
@barrenechea barrenechea deleted the power-confirmation branch August 16, 2025 20:38
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.

BMC UI could prevent unintentional Node Power Off with an confirmation step by user Unable to Activate Power Toggle without Entering Edit Mode

2 participants