summaryrefslogtreecommitdiff
path: root/src/views/Operations/ServerPowerOperations
AgeCommit message (Collapse)AuthorFilesLines
2024-04-18Focus default action in modal windowsPaul Fertser1-0/+2
Users of common WIMP GUIs (as opposed to interfaces primarily meant for touch input) expect dialog boxes to have keyboard focus set on the button for default action so that it can be executed by a single key press. Usually that is chosen to proceed with the operation but in cases where that leads to data loss the UI designers often pre-select Cancel as a precaution. This patch adds suitable property to all invocations of msgBoxConfirm() method of `this.$bvModal` BootstrapVue object. For regular actions the confirmation button is selected and can be activated by Enter or Space bar. For actions deemed dangerous Cancel is focused instead so it takes two key presses (first being Tab to shift the focus) to prooceed. This also improves accessibility following the Web Content Accessibility Guidelines (WCAG) published by W3C. Tested: manually verified that modals are consistently shown with the specified button focused, Enter and Space bar key presses produce the same effect as left pointer button click: when Cancel is focused it just closes the window, when OK is focused it sends the corresponding request to the Redfish endpoint. Change-Id: I66bfd02e48e08dc18994b11bbdd5d6b3ea27047f Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-03-05Reformat files with new linterEd Tanous2-7/+6
All changes should be whitespace, and were done using npm run-script lint. Change-Id: I943c6b435c5c872841af5affc1e89910468b5ca6 Signed-off-by: Ed Tanous <ed@tanous.net>
2022-11-08Added correct diagnostic mode displayglukhov.mikhail1-0/+6
Before the patch, the diagnostic mode was displayed as "Not available", after the patch "Diagnostic mode". Test: in the console run the command "busctl set-property xyz.openbmc_project.State.Host \ /xyz/openbmc_project/state/host0 \ xyz.openbmc_project.State.Host CurrentHostState \ s "xyz.openbmc_project.State.Host.HostState.DiagnosticMode". open the "Server power operations" page, check the Server status Signed-off-by: glukhov.mikhail <mikl@greenfil.ru> Change-Id: I90d04e05188eb92c4c4b38fe578ae36db0424b5c
2021-08-27boot: Send current settings on every boot operationLei YU1-10/+2
In the boot page, it did not allowed to send the same options. However, there is a case that it is needed to send the boot options anyway. In typical x86 systems, when the BIOS is rebooted, it will clear the boot options during the boot, so the settings in the web page does not reflect to the BMC's boot option settings. This patch allows to send the options anyway, so as long as user "applies" the settings, the boot options are set to BMC. Tested: Verify the same boot options settings are set to BMC after BIOS boots. Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: I18ce341bbf9d968a78e8d818b005d1774936a48b
2021-08-10IA update: Update control section to operationsSandeepa Singh3-0/+402
This is the third update to the information architecture changes and has the following changes: - The control section has been updated to operations - The server led page has been removed - The firmware page is moved to operations section Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I2e23da447890d7bee51892e1f782d5f2db6dded4