summaryrefslogtreecommitdiff
path: root/src/views
AgeCommit message (Collapse)AuthorFilesLines
5 daysAdd privilege check to power operation buttonHEADmasterAravinth S2-2/+23
Disables power operation buttons for users with "Read-only" privileges. This change ensures that only "Operator" and administrative users can perform power operations, preventing unauthorized actions and enhancing system security. Change-Id: I515ede092cef3c82a110d9534d9f8d3d6afc3135 Signed-off-by: Aravinth S <aravinths@ami.com>
2025-08-22Add i18n vendor overlays and dynamic bundlingjason westover1-2/+5
- Add opt-in vendor overlays under src/env/locales/<env> (and optional variant), merged on top of base locales at runtime. - Auto-discover and bundle all base locale JSON files in src/locales/. - Example: move dump type labels under pageDumps.dumpTypes; read vendor-only dump labels from overlays. - Docs: update i18n guidelines and env README (formatting fixes). - Tests: add focused unit tests for overlays and locale aliases. Tested: - Unit: i18n.locale-alias.spec.js, i18n.vendor.spec.js (passing) - Manual: Verified dynamic locale discovery and overlay merge in UI Change-Id: I8eae2bfec0e9622bafdafac3168dbf96650e8ae8 Signed-off-by: jason westover <jwestover@nvidia.com>
2025-08-13Remove NoAccess references from privilege rolesaravinths11-15/+0
The NoAccess privilege is not supported according to the Redfish schema, yet residual UI privilege role definitions still referenced it. This commit cleans up remaining code fragments that displayed NoAccess-related descriptions in the web UI. Resolves discrepancies between schema and UI by aligning privilege role displays with Redfish standards, reducing user confusion. Change-Id: I1f21630019407e9b2bf223d2336bc110a6bfafab Signed-off-by: Aravinth Sri Krishna Raja Raghavan <aravinths@ami.com>
2025-06-02Fix password confirmation validationVladimir Novikov2-2/+2
@vuelidate/validators ^2.0.0 does not support literal strings as references for sameAs. They instead treated as literal strings and it means that the password confirmation must exactly match the passed string which is obviously incorrect. This essentially is just a correction of some artifacts caused by the upgrade to Vue 3. Change-Id: I41f6a1764c2dd3fcfbfd96d2da9b48e6e409fef0 Signed-off-by: Vladimir Novikov <MeVladimirNovikov@gmail.com>
2025-04-08fix: Update date formatting to use formatTimesuryav97241-1/+1
Show the Time and Timezone in the overview page instead of showing date twice. Format the date using the formatTime filters to display the proper date and time in the overview page. Before it shows date twice, In the place of time it shows date. Change-Id: Ibd8211530750091c03f788106bfb78097be2b2d8 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2025-04-03Adding Georgian translation for web interfaceEkaterine Papava1-0/+4
In case there is a need to include font, you can contact me. BR, Ekaterine. Change-Id: I878a0f7ea3ffc163ebc71e0278bac9c0a6323dd9 Signed-off-by: Ekaterine Papava <papava.e@gtu.ge>
2025-03-26style: add Sass configuration for Vue 3suryav972410-40/+2
Configure sass in the vue.config.js file and remove the import of the scss file from each page. The styles are handled by the css loaderOptions in the config file. Every component and page has the appropriate style applied. The appearance adjusts to the openBmc webui in Vue 2. Change-Id: I3773c063646185b80b7bd61d05aa80a993cbd121 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2025-02-05Boot settings: remove oneTimeBootEnabled checkHuy Le Anh1-6/+1
The commit [1] added oneTimeBootEnabled as condition to display he Boot settings menu. It is not reasonable as the option is disabled by default [2] and users can configure for a selected boot option to be applied once or permanent. This commit removes the check so that the menu is displayed when the boot source option is supported. Tested: 1. Log in to BMC Web and go to the server-power-operations page 2. The boot settings options are shown. [1]: https://github.com/openbmc/webui-vue/commit/918526f20c16a05c261a56814657942a707323dd [2]: https://github.com/openbmc/openbmc/blob/f8b0a12a3781e1f771630cad1244016b1ed6f8cd/meta-phosphor/recipes-phosphor/settings/phosphor-settings-manager/boot_type.override.yml#L19 Change-Id: I1efd2ae0c201744076e3fb00229c81847e940687 Signed-off-by: Huy Le Anh <hule@amperecomputing.com>
2025-02-04Rename host firmware to bios firmwareShane Lin2-7/+7
Problem: - Host firmware naming was inconsistent with actual functionality Changes: - Rename hostFirmware to biosFirmware in store - Update component names and references - Modify i18n translation keys Tested: - Verified store mutations/actions - Confirmed component rendering - Checked i18n translations - npx eslint without error related to 'host' Change-Id: Ib97e4682f649d4a52f65e69df50422d84f23e916 Signed-off-by: Shane Lin <hslin@nvidia.com>
2025-01-25Fix Vue3 i18n compatibility for Dumps pagesPaul Fertser3-0/+6
This follows 883a0d597962dfd30d6c48319b8b33e2d0f98606 approach when the Dumps code was somehow missed during the refactoring. The change fixes operation for the page showing list of dumps, before it was blank due to an exception. Change-Id: I49daa4fdaea1e8d98e4964acff9cb0bda5d8d573 Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2025-01-24inventory: move serial console to systemTan Siewert2-14/+10
SerialConsole was deprecated in Manager v1_10_0 and has been removed in bmcweb [1]. Because the SerialConsole values were not available anymore, the Managers were not displayed because "setBmcInfo" couldn't find the "SerialConsole" properties. THe following error will be logged: ``` TypeError: Cannot read properties of undefined (reading 'ConnectTypesSupported') at Wa.setBmcInfo (app.25e72670.js:58:745295) at app.25e72670.js:50:2774 at app.25e72670.js:50:10113 at Array.forEach (<anonymous>) at app.25e72670.js:50:10092 at Wa._withCommit (app.25e72670.js:50:11953) at Wa.commit (app.25e72670.js:50:10066) at Wa.commit (app.25e72670.js:50:9518) at o.commit (app.25e72670.js:50:2216) at app.25e72670.js:58:745747 ``` [1]: https://github.com/openbmc/bmcweb/commit/fa800c8a141aa4b209269e0fb50cae34aa24f75d Tested: BMC manager being listed in the inventory and serial console variables being displayed for the system. Change-Id: I1a24178717805ca50eef2c89042c0bd9ede1d5bc Signed-off-by: Tan Siewert <tan@siewert.io>
2025-01-13Fix date format regex checkHuy Le Anh1-1/+1
The regex formula for formatting dates is no longer correct after upgrading to Vue3. This commit corrects it by adding a `$` sign to the end of the date pattern to avoid wrongly validate date in wrong format. Tested: 1. Log in to BMC Web and go to the date-time setting 2. Click "Manual" to fill Date field with the following format: 2025-06-112 3. Can't save and show "Invalid format" Change-Id: Ia1ff1e9cc9885772e6145732dab177949be60969 Signed-off-by: Huy Le Anh <hule@amperecomputing.com>
2024-12-26Timeout duration error in account policy settingsuryav97241-1/+1
On user management page fix the error while save the account policy settings with the automatic after timeout. while changing the timeout duration the value is in string but the payload should be integer. Add the parseInt in the timeout duration value while save the account policy settings with the automatic after timeout. Change-Id: I69ab13af3fd34e4128d3f01b71b0ffd092fe9a06 Signed-off-by: suryav9724 <suryav@ami.com>
2024-11-18Fix the KVM terminal screen not displayingHuyLe1-0/+4
During the upgrade to Vue 3 [1], the initialization of the selector, including the definitions of height, display type, background, overflow, etc., was ignored, resulting in the KVM screen not displaying the terminal interface. This commit helps to import these properties for the KVM from the _kvm.scss file to fix bug [2]. Tested: 1. Go to the OBMC web page. 2. Go to the KVM page and check that it works normally 3. By minifying and zooming in on the web browser, the KVM screen adjusts automatically. 4. Switch between different pages. 5. Return to the KVM page and check that it works normally. [1]. https://github.com/openbmc/webui-vue/blob/master/src/App.vue#L38 [2]. Bug: https://github.com/openbmc/webui-vue/issues/128 Change-Id: I1842c914e27dd5c68fe20f49999712b68c1e93a5 Signed-off-by: Huy Le Anh <hule@amperecomputing.com>
2024-10-11Fix power operations as per DMTF redfish specShubhi Garg1-6/+26
[Problem Description]: 1) Power Operations page uses "Orderly" and "Immediate" strings for "Graceful reboot/shutdown" and "Force reboot/shutdown". These names do not align according to redfish spec and causes user confusion. 2) For boot settings, if "BootSourceOverrideEnabled" flag is false, WebUI allows to modify boot options. [Changes]: 1) Changed reboot/shutdown naming convention as per DMTF redfish spec to view correct names on WebUI. 2) Added info-tooltip to give detailed information on Reboot/Shutdown options. Information is referenced from: https://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/ResetType 3) Added "oneTimeBootEnabled" condition check to render BootSettings if condition is true. "oneTimeBootEnabled" checks BootSourceOverrideEnabled flag, if true then BootSettings will be able to modify boot options. [Testing]: 1) Load WebUI with the changes and go to Power operations page. 2) Check reboot shutdown names have changes to Graceful reboot/shutdown" and "Force reboot/shutdown". 3) Check if BootSettings template renders as expected. Change-Id: I5a86e05ee03167ebb93ffd381af3a47c277990fd Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
2024-10-04i18n fix after vue3 merge to masterSurya Venkatesan3-6/+6
Fix i18n issue in the Power restore policy, Inventory LEDs, and User management page. After merge the vue3 code to master the i18n Power restore policy, Inventory LEDs, and User management page got conflicts and old code retrieved in master. So unable to render the Power restore policy, Inventory LEDs and unable to disable the user in user management page change the i18n.t method to i18n.global.t for the vue3 support. Change-Id: I46f3f56632308ceaee321dd896e16e922d964b60 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03Date and time page helper issueSurya Venkatesan1-6/+7
Invalid feedback element if condition change, Helper import change in date time page and table date filter global component. Change-Id: I1f01943229b78d4dff36f3905fe3781ba696d528 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03Invalid feedback if condition changeSurya Venkatesan8-21/+25
For required, invalid format, minlength, maxlength, date, pattern validation if condition change in the few components Change-Id: Id8eebc140301e48dde833a604ca92426ebf77c9c Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03LDAP and server power operation page fixSurya Venkatesan2-3/+9
In LDAP loading declare outside the form, form validation condition change, server power operation page validation added and i18n method changed in the event log store. Change-Id: I903b4dec7da1a5a2cc8441c65693c57201405d70 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03Factory reset modal popup and validation issueSurya Venkatesan1-9/+26
In vue3 i18n is not return the object value from the locale, so unable to do the for loop in Setting list. Remove the for loop and implement the separate list for reset bios and reset to default. And implement the useVuelidate in the factory reset page. Change-Id: I10833742475b90f7c5349a5b995ff04e93c306de Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03Locale gets undefined in the login pageSurya Venkatesan1-3/+2
While use i18n.locale it is undefined so those pages use the storedLanguage that page gets failed to load. Change-Id: I11b45f42d06bb355f561d5c1e93f7516775b1c81 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03Network page validation and i18n issue fixSurya Venkatesan8-51/+75
In network page invalid if condition changed, added validations and i18n function changed based on the vue 3 support. Change-Id: If5b9c00f6da722984f1c568cfbcb6b34537c3df1 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03Firmware page vuelidate and form file error fixSurya Venkatesan1-11/+9
While add a file in the form file vuelidate error occurs and global component form file not return a file, by emit the $event in form file fix the issue. Change-Id: Icbeddc7a3faa262f12e85268206ae70950f37905 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03Handle expired passwords Redfish standard wayPaul Fertser1-0/+1
A password can expire at any moment during session lifetime and bmcweb starts returning 403 Forbidden errors to the requests made after that. The response contains clear indication of the condition in the standard `@Message.ExtendedInfo` attribute which is an array of Message objects. Previously the code was trying to detect this condition by querying AccountService after logging in but this approach doesn't work when password expires mid-session. Also it was limited to BMC-managed accounts and used hardcoded account URIs in violation of Redfish spec. This patch adds to the interceptor of 403 error so that the user is automatically redirected to the password change page as soon as the condition is detected. The same message is also present in the session creation POST response 201 if the password expired before the log in attempt, in this case the session is created as usual but the user is automatically redirected to password change page before any further requests are made. Tested: logging in, navigating, logging out with non-expired password. Logging in, navigating, then running `passwd -e <accountname>` via ssh leads to functional password change page on the next request and then navigating proceeds normally, and logging out too. If password is expired before logging in the user gets redirected to the password change page automatically after logging in. Fixes: https://github.com/openbmc/webui-vue/issues/118 Change-Id: I03f5ee2526a4bb1d35d3bbea1142fea077d6bfed Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03Add user validation in user management pageSurya Venkatesan1-10/+14
helpers and sameAs validations are not working in vue3 so the helpers and sameAS are imported from vuelidate/lib/validators. Invalid validation field like required are not show so the if condition for invalid feedback alert field changed. Add user and delete user are working in the user management page. Change-Id: I0133e02357048ffbc6206382b2a0a5c162e2384d Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03Rebase vue3 to latest masterEd Tanous2-2/+2
Ipv6 got added. Make the updates to make it build for vue3. Change-Id: Ifaa4b8e46200a8431c5d9ca9b8e3e279cc868f26 Signed-off-by: Ed Tanous <etanous@nvidia.com>
2024-10-03Vuelidate, I18n, and filter are upgraded to vue3Surya V64-493/+719
While navigating to the pages i18n, vuelidate, and filters errors occurred. i18n, and vuelidate code changes in each page adapted to vue3. Filter global function for date and time format implemented in the main.js file and those files which as called the filter functions. Change-Id: If1a2ee22d47750faef1c35ef2c263299067d9a20 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03i18n, vue-router and vuex upgradeEd Tanous12-23/+90
1. Configuration of i18n legacy as false. 2. Translation function t is called using the useI18n. 3. Used the i18n.global.t() function from i18n instead of this.$t() 4. Event bus error that occurred during logout. 5. Implemented vue-router 4.4.0 and vuex upgrade to 4.1.0 Change-Id: I9464d82c76dcc1445ce271983ea3ab9d7b03d265 Signed-off-by: Surya Venkatesan <suryav@ami.com>
2024-10-03Upgrade vue3 and all dependenciesEd Tanous38-62/+227
Start the process of porting everything to Vue 3. I have most things working. npm run-scripts build works, npm install works. prettier passes. Styles load, login works, webui loads. This was primarily done using the linked documents below. It makes the following design decisions: 1. Vue is put in compat 2 mode, which allows most of the components to work as-is. 2. Bootstrap v4 is used along with bootstrap-vue to keep our components working. 3. Minor changes are made to load the latest versions of vue-router, vuex, and vue-i18n. I suspect this patchset is good enough to start with, and we can clean up the broken things one patchset at a time. The things that need to happen are: 1. Get remaining features working again. This primiarily is vue-i18n for mixins, and non vue components. This likely needs to be done by not pulling in i18n into the non vue components, then using the .Vue files to do the internationalization in the component context, NOT in the mixin context. Alternatively, we could drop MixIns alltogether. 2. Get custom styles working again. Previously, we used some path hackery in vue.config.js to optionally pre-load styles. This stops working now that we're required to @import our modules. Likely we need some rearangement of the paths such that custom styles are a complete replacement (possibly importing the original) rather than additive with overrides. That's a guess, but I don't really see anyone else doing customization the way we've defined it here. 3. Bootstrap 5 no longer requires ANY custom vue modules, as it has dropped the jquery dependency. We won't be able to pull in bootstrap 5 all at once, so pull in bootstrap 5 under an alias, like "bootstrap5" that we can optionally import 5 or 4. 4. One at a time, start porting components over to Vue3 syntax and bootstrap 5. This will be the bulk of the manual work and review. The only thing I think left is getting unit tests passing, which I commented out the pre-commit hook to make this PR. Tested: Code builds. Needs better testing. [1] https://router.vuejs.org/guide/migration/ [2] https://vue-i18n.intlify.dev/guide/migration/vue3 [3] https://vuelidate-next.netlify.app/migration_guide.html#package-name-and-imports Change-Id: I5bb3187b9efbf2e4ff63e57994bc528756e2a981 Signed-off-by: Ed Tanous <ed@tanous.net>
2024-09-24Updated Dumps card in overview pageNikhil Ashoka1-1/+1
- The Dumps count in the overview page is not displaying the count of all
the entries. Updated to display count of all entries. - The registration of Dumps store is in multiple locations, store -> index.js and env -> store -> ibm.js. Causing error in IBM machines because of duplicate
 registration. Removed from env folder. Change-Id: Idc57a85db090d1b1d3211c01e658b181a7fc1177 Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com>
2024-09-10Add support for MultipartHttpPushUri in fw pushLeo Xu1-1/+3
According to the Redfish Firmware Update Whitepaper [1] due to the vendor-specific details of this operation, HttpPushUri has been deprecated in favor of multipartHTTP push updates. Availability of update methods is determined from the UpdateService response. If MultipartHttpPushUri is found it will be preferred over HttpPushUri Tested: -Firmware update by performed via MultipartHttpPushUri [1]: https://www.dmtf.org/sites/default/files/standards/documents/DSP2062_1.0.1.pdf Change-Id: I184a889514d5f9f9598f35b2281404335bc0bc82 Signed-off-by: Leo Xu <yongquanx@nvidia.com>
2024-08-27Add status state info to inventory tablesFarah Rasheed2-0/+80
Add status state information to the inventory tables for fans and power supplies. Also updates sortCompare to be able to sort by the state. Change-Id: Ic830dd0867daee0bf6052a5d1cff5592b98fc009 Signed-off-by: Farah Rasheed <Farah.Rasheed1@dell.com>
2024-08-14Add a confirmation modal for disabling usersFarah Rasheed1-10/+33
Add a confirmation modal in the user management table when users are disabled. Change-Id: I06bb1c96abdc7fa895aec2fe2025e9039577ae1d Signed-off-by: Farah Rasheed <Farah.Rasheed1@dell.com>
2024-08-12Handle expired passwords Redfish standard wayPaul Fertser1-4/+1
A password can expire at any moment during session lifetime and bmcweb starts returning 403 Forbidden errors to the requests made after that. The response contains clear indication of the condition in the standard `@Message.ExtendedInfo` attribute which is an array of Message objects. Previously the code was trying to detect this condition by querying AccountService after logging in but this approach doesn't work when password expires mid-session. Also it was limited to BMC-managed accounts and used hardcoded account URIs in violation of Redfish spec. This patch adds to the interceptor of 403 error so that the user is automatically redirected to the password change page as soon as the condition is detected. The same message is also present in the session creation POST response 201 if the password expired before the log in attempt, in this case the session is created as usual but the user is automatically redirected to password change page before any further requests are made. Tested: logging in, navigating, logging out with non-expired password. Logging in, navigating, then running `passwd -e <accountname>` via ssh leads to functional password change page on the next request and then navigating proceeds normally, and logging out too. If password is expired before logging in the user gets redirected to the password change page automatically after logging in. Fixes: https://github.com/openbmc/webui-vue/issues/118 Change-Id: I03f5ee2526a4bb1d35d3bbea1142fea077d6bfed Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-07-26Fix single event entry downloadSean Zhang1-5/+15
For event entry download, the href not work since the event entry download only work with header of "Accept: application/octet-stream" or the default "*/*", change to click function to make it work. Refer: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/40136 Change-Id: I11051e913bfd71ef081bed93ffcbeeb1edd8c730 Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
2024-07-16Removed TFTP code update optionNikhil Ashoka1-70/+4
- Removed TFTP server firmware update ability in the UI. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: Icbeddc7a3faa262f12e85268206ae70850f37905
2024-07-15Wrong store function used in Dump.vueKees Trommel1-1/+1
In Dump.vue the "store" function getBmcDumpEntries is used but this should be getAllDumps. This because Dump.vue wants to get all the dump entries and not just the BCM entries. Also the output format of getBmcDumpEntries is not what Dump.vue expects causing that WebUI does not display any dump entry even when BCM dump entries exists. Note: The "dumps" path does not exist in the default src/router/routes.js but (currently) only in src/env/router.ibm.js Change-Id: I0c211126e1f1d0394455ea7e7ff627814674e1fa Signed-off-by: Kees Trommel <kees.trommel@aimvalley.com>
2024-07-12Fix word-break for group name in edit role groupFarah Rasheed1-1/+1
Apply 'word-break: break-all' style for the group name field in the Edit role group modal to ensure long group names wrap properly within their container. The change improves the readability and layout consistency of the group name display in the modal even if it contains long text. Fixes #111 Change-Id: Ia424fadc1630bbf28726a7064ff9b14764877d2b Signed-off-by: Farah Rasheed <Farah.Rasheed1@dell.com>
2024-07-12Update network hostname display styleFarah Rasheed1-1/+3
Add 'word-break: break-all' CSS property to ensure long hostnames wrap properly within their container. This prevents overflow issues that occur with long hostnames without spaces. Fixes #111 The change improves the readability and layout consistency of the network information display in the NetworkGlobalSettings view. Change-Id: I142d18b9507f6ae0a90778e5a338b015507c9d79 Signed-off-by: Farah Rasheed <Farah.Rasheed1@dell.com>
2024-07-06Add support for IPv6 network settingSean Zhang5-9/+697
Add IPv6 setting in network setting page. - Add IPv6 domain name, DNS servers, NTP servers enable/disable - Add DHCPv6 enable/disable - Add IPv6 default gateway - Add IPv6 addresses - Add IPv6 static addresses - Add IPv6 static addresses adding and deleting Tested: - IPv6 domain name, DNS servers, NTP servers enable/disable function - DHCPv6 enable/disable function - Verified the IPv6 default gateway - IPv6 addresses adding and deleting - Verified the IPv6 addresses in IPv6 table Change-Id: I9eebf6ef5f7de748f79779d8168b8dcfcdda2495 Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
2024-06-25Replace fixed paths with response from APISean Zhang1-9/+15
Currently, the Redfish request used fixed URIs, modify the code to use the BMC and System paths got from response of API calls. For CertificateStore, since it was using the URL for constant variable assignment, changed the constant CERTIFICATE_TYPES to method call. Change-Id: I330b7272083e3e6993aae5705aae170b8e9a4659 Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
2024-06-11Fixed filter error in dumps pageNikhil Ashoka1-1/+1
- We were calling a method that is not present in @filtered. Fixed this by using the method that is added for this purpose and not used. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I26b4b7d9be00c79c17dba382c0df6a0f02e1cd89
2024-06-07Disabled the privilege dropdown for root useraravinths11-0/+1
By allowing root user privilege changes to Operator or Read Only, after login with root user seeing privilege access issues in some pages and not possible to change administrator again. Allowed root user to change password alone and disabled the privilege changes Change-Id: I2be93060fb30e1f08dc2ea20a30fb998dc83ee0f Signed-off-by: aravinths1 <aravinths@ami.com>
2024-05-21Added toast notification for identify LEDsNikhil Ashoka8-0/+12
- Added success toast notification messages for identify LEDs present at Inventory and LEDs page and Overview. - Import of Toast was not present in Overview's Inventory card and DIMM slot table, fixed it. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: If9ad84e66f6f15616cb8af51b1e84d8d06b1afd0
2024-05-09Fixed radio buttons arrangement issueNikhil Ashoka1-0/+1
- The contents in the Power restore policies were not listed in a new line for large or extra large screens, Fixed this by using stacked prop. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I30ec1206a929137fc6635d602944cd80d2c2805f
2024-05-08Removed Challenge password option from Generate CSR panelVedangi Mittal1-20/+2
- Unable to generate Certificate Signing Request (CSR) when filling optional field-Challenge password values on Certificate page. - Hence, removed the Challenge password option from the Generate CSR panel. Change-Id: I862f024de84f34738be5e5cd22701b63c2309152 Signed-off-by: Vedangi Mittal <vedangimittal3004@gmail.com>
2024-04-25Deduplicate and simplify RoleId handlingPaul Fertser1-4/+1
To improve UX for users of accounts with restricted permissions the frontend determines the current RoleId. Knowing that it can hide menus and inhibit transitions that are not allowed by the backend in any case. This patch unifies the handling by moving processing of the API reply containing RoleId in the single place, right where `authentication/getUserInfo` store gets it. This makes the program flow easier to understand and change if needed without worrying of where another copy of the code might be and how it would need to be amended. No functional change. Tested: logging in and out, navigating the pages, getting an error message when wrong credentials are used, reloading the page with an established session. All while observing Network and Console tabs in Web Developer tools, no unexpected API requests are made and no unexpected errors reported. Confirmed in debugger that the retrieved role gets stored and used for routing restrictions. Change-Id: Ia8782f44cb6bf813954d30b8bf3a620a626ad455 Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2024-04-18Focus default action in modal windowsPaul Fertser12-0/+20
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-07Added State columns for the processor tableGlukhov Mikhail1-0/+22
When a processor is present: Old behavior: Health = Ok (green color) New behavior: Health = Ok (green color), State = Enabled (green color) In the absence of a processor: Old behavior: Health = Critical (error red color) New behavior: Health = Ok (green color), State = Absent (warning yellow) Tested manually on my system with 1 CPU present and 1 CPU missing Change-Id: I33f8d94cbb5dcfd6a33b4b3ca379d2323362caca Signed-off-by: Glukhov Mikhail <mikl@greenfil.ru>
2024-03-05Reformat files with new linterEd Tanous27-90/+94
All changes should be whitespace, and were done using npm run-script lint. Change-Id: I943c6b435c5c872841af5affc1e89910468b5ca6 Signed-off-by: Ed Tanous <ed@tanous.net>