summaryrefslogtreecommitdiff
path: root/src/views/Operations
AgeCommit message (Collapse)AuthorFilesLines
2024-04-18Focus default action in modal windowsPaul Fertser3-0/+4
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 Tanous7-19/+18
All changes should be whitespace, and were done using npm run-script lint. Change-Id: I943c6b435c5c872841af5affc1e89910468b5ca6 Signed-off-by: Ed Tanous <ed@tanous.net>
2023-10-03Update Firmware page interactions when system is powered onKenneth Fullbright3-2/+11
- if isServerPowerOffRequired is true & !isServerOff is true a warning will be shown that the server must be powered off to switch images and update the firmware. - When system power is on, the switch to "running button" is disabled. Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: I65a24984c36f6ae39d715f4fa66e9884d031cb20
2023-07-27WebSocket tries to connect with 'console/default' instead of 'console0'Nikhil Ashoka1-4/+3
- This patchset will try to connect to the WebSocket with the path 'console/default'. - Until now, we were connecting to 'console0'. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I6136e09458284b76f5b03f89be247db3e3ff82fd
2023-06-20Fix kvm session and add event busKonstantin1-14/+6
Bug description: Before this commit KVM window wasn't being closed after logging out Test: Step1. Launch webui on browser and see KVM page on /#/operations/kvm. Step2. Open additional window using 'Open in new tab'. Step3. Navigate to another page. For example, /#/operations/key-clear. Step4. Logout. Window is still open. Change-Id: Ife79ebca41eb4d588c0b8f4fae06135420eda155 Signed-off-by: Konstantin Maskov <sulwirld@gmail.com>
2023-03-27After the session expired redirect to login pagekirankumarb072-0/+4
If the user switches pages between the KVM and Virtual Media pages after the session has expired, it won't redirect to the login page. So I have added the system redfish API call in the create method to check the session timeout status. If the session is expired, the API call will get a 401 status, and WEBUI will be redirected to the login page. Change-Id: I069768ee0cef41afb4e6aa770bb8bec6565a16bd Signed-off-by: Kirankumarb07 Ballapalli <kirankumarb@ami.com>
2023-02-21SOL console opened in a new tab shows an errorkirankumarb071-1/+1
When the SOL console is opened in a new window, the status of the SOL connection is displayed as "disconnected." And the error message is displaying, "The system must be powered on to connect." I have added this patch to get the systems API call to get the server status when SOL is opened in a new window. Change-Id: I971947fea0980605d400d46bb1e18b2d20164602 Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.com>
2023-02-18Closed KVM new window after WEBUI logged outkirankumarb071-2/+27
Description: When KVM is opened in new window, after WEB UI is logged out, opened KVM window is not getting closed. It remains opened and accessible. Root Cause: There is not handle to close the KVM new window after the WEB UI logged out. Fix: Added the KVM window opened information in store, and checked that information to close the window. Tested: Step 1: Login to WEB UI Step 2: Navigate to Operations -> KVM Step 3: Open KVM in new window Step 4: Click Logout in WEB UI Result: After successful log out, KVM new window is closed as expected. Change-Id: Iab8e54d3088a08fb0ae9b581b2647fc0ab5460bd Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.com>
2022-12-19Fix SOL statusglukhov.mikhail1-8/+11
Only when the host is turned off should the status be "Disconnected". For other host states, the SOL status should be Connected. Test: enabled my host in DiagnosticMode. Now SOL status is "Connected", before the patch it was "Disconnected Signed-off-by: glukhov.mikhail <mikl@greenfil.ru> Change-Id: I000b181f71d7ee5bd243a3c6a6d03ea7a9ea0ef7
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
2022-03-09SOL: fix socket close exceptionXiaochao Ma1-9/+17
When the sol page is opened, a socket is opened; when the sol page is closed, the socket is not closed (console print is also exception). It only closes when you log out. Fix this condition to 'close socket when SOL page is exited'. test: Enter the SOL page-->console print'websocket console0/ opened' -->close the SOL page -->console print'websocket console0/ closed. code: 1000 reason: ' Signed-off-by: Xiaochao Ma <maxiaochao@inspur.com> Change-Id: I0f406c2085aec303d6e5139d57b31ed6f244a155
2022-02-22Removed alert message from Update firmware componentKenneth Fullbright1-14/+1
There shouldn't be an alert message in the update firmware component. - Took away the alert from the Update firmware component. Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: I1ab97fbba39fb2d7639707cceaf75b71531fa971
2022-02-12Update SOL console page alert messageNikhil Ashoka1-0/+16
- if the status of the SOL console is disconnected, an alert message will be displays that System must be powered on to connect Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I4cdf99954f3a4e129404facf2992dadf63e62f70
2022-02-04Add Key clear page under Operations sectionSandeepa Singh2-0/+108
This page will allow privileged user to clear encrypted keys. - Only admin and CE login user will be able to see the page - The UI will be different for both, admin and CE login user(service) - This page is IBM only Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ic6fe3454de815629a6b2250daa99ab21f2b316c3
2021-09-09Fix broken link on firmware pageDixsie Wolmers1-1/+1
The route for server power ops was moved from `control` to `operations` during the IA updates. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I01e6c3d06afc39ec752850f584e46305c7d87dfa
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: Add resource management sectionSandeepa Singh2-167/+0
This is the sixth commit for information architecture changes and has the following changes: - Resource management section has been added - Carbon icon used for resource management section is data--base--alt - Manage power usage page from operations has been moved to resource management - Manage power usage page has been updated to power page Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: If3feb994dbad19dd6cfb1507d976d09643c8e4d6
2021-08-10IA update: Update configuration to settingsSandeepa Singh2-82/+0
This is the fourth update to information architecture changes and has the following changes: - The configuration section is updated to settings - The date and time settings page is updated to date and time - The network settings page is updated to network - The power restore policy page in operations section is moved to settings section Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I6f5ab25f5227530be430bd39a4d9629b3bf09d8b
2021-08-10IA update: Update control section to operationsSandeepa Singh29-0/+2335
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