summaryrefslogtreecommitdiff
path: root/src/views
AgeCommit message (Collapse)AuthorFilesLines
2023-03-28Fix User Management Page issues title and Policykirankumarb071-1/+3
This patchset will fix the following issues in the user management page 1. "lockoutThreshold" and "lockoutDuration" values are not shown in the account policy model when we navigate to any other page and come back to the user management page account policy model. Fix - The "lockoutThreshold" and "lockoutDuration" values are monitored and updated in the model window by using the watch. When navigated from another page, the watch is not updating the values, so the default values are displayed. Initialized the value with an empty object, so the watch will get triggered and update the fields with proper values. 2. The User Management Page title is not translated properly. The router names are used to map each page's language objects. For the user management page, the router name and the object value in the locale file are different. Due to that, the title did not get translated properly. Fix - Changed the user management page title to match the locale file's language object key value. Change-Id: I1582c9d528633465c65f5d78e31d3dc740252cb0 Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.com>
2023-03-27Added route restrictions based on user privilegeDamian Celico1-6/+6
This commit allows us to add 'exclusiveToRoles' field to route config files, with the list of roles that can access this resource, if needed. In this case, only Administrator can access Virtual-Media page and SOL console, and it is blocked for other users. Signed-off-by: Sivaprabu Ganesan <sivaprabug@ami.com> Change-Id: Ibcee18bd92d97c34414ecaf2caf6af28070c5538
2023-03-27Sessions page Client ID is not displayedkirankumarb071-3/+13
Redfish added support for the Context parameter on the session resource This parameter has the same function that the "OemSession.ClientId" field served. And BMC Web moves all the existing ClientId code to produce Context. This patch set contains the code changes for adding a new column "Context" in the sessions page and modifying the existing column "Client ID" to "Session ID" and mapping the redfish property "Id" to it. The property "Context" is optional in redfish. If the Context holds any value it will display in WebUI as it is. If it is not having any value, "-" will be displayed in the WebUI. Change-Id: Ibc99416fc37a91029bf430ccc7b387832eef729c Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.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-03-13Fixed calling method "handleSubmit" two timesChandra Harkude1-1/+1
Problem : "handleSubmit" called on clicking Ok button implicitly as well by the form (<b-form id="generate-csr-form" novalidate @submit.prevent= "handleSubmit"), due to this, redfish API POST /redfish/v1/CertificateService/Actions/Certificate Servi ce.GenerateCSR sent two times when "Generate CSR" button clicked,ideally redfish API needs to be sent only once This leads to failure of the second redfish API. Steps to Reproduce Issue: 1. Go to 'Login->Security and access->Certificate->Generate CSR fill the form 2. Click on 'Generate CSR.' 3. Scroll down to 'More Tools->Web Developer Tools->Network tab' 4. Two POST /redfish/v1/CertificateService/Actions/CertificateService. GenerateCSR are sent Solution: The issue can be fixed either by deleting the Ok button click event listener or deleting the (@submit.prevent="handleSubmit"). I have used later one, which is small change as well does not alter the code much Tested : I did manual testing and observed that two POST requests are no longer sent Reference : https://softauthor.com/vuejs-prevent-form-submission/ Signed-off-by: Chandra Harkude <chandramohan.harkude@gmail.com> Change-Id: I8736e597d2fe70aef438779667475426837d2c67
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-21Add button to clear POST code logsKonstantin Aladyshev1-0/+26
Utilize '#LogService.ClearLog' action to provide a possibility for the user to clear POST code logs. Change-Id: Iadd94b9ebc93bc81b13ee979962103587c939fc7 Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.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>
2023-02-15Added DHCP enable/disable featureNikhil Ashoka1-0/+65
- DHCP toggle for enablement was not present, It is now added in the Networks page. - DHCP when enabled, if there is no address, it picks up an address on its own.When it is disabled, we need to manually configure it. Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I32a9e0df28e6609945f3757a6bd69dc66a86f480
2023-02-14Reducing values to a common formatGlukhov Mikhail6-12/+48
I use this patch to convert all values into the format <Description>:<Value><Unit of Measure>. I put the units of measure in a separate localization area in order to use them in the sensor page in the future. Change-Id: Ic6554860c4185bc4d681a97205051799c6637b5c Signed-off-by: Glukhov Mikhail <mikl@greenfil.ru>
2023-02-13Added popup window with error messageDamian Celico1-6/+7
Showing error message if uploaded certificate is incorrect Signed-off-by: Damian Celico <damianx.celico@intel.com> Change-Id: Ifa034e663329e4841ff5c68f6171ce71739a6d13
2023-02-13Add translation for a few missing UI elementskirankumarb072-6/+29
On the sensor page and user management page, some of the strings are not getting translated to the selected language. I have added this patch to add the multiple language strings to the missing strings. Change-Id: I03ca43bb81708f85e913e39c6dfa24ab7f3de876 Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.com>
2023-02-10Fix bug in Overview endless loadingKonstantin1-3/+4
Bug description: Before this commit there was an endless loading on blue bar when user entering to the Overview. Problem was missing `if` statement after what that promise wasn't be able to finish. Test: Step1. Launch webui on browser and see Overview page. Step2. Wait a while. Blue loading bar finished pulsing. Change-Id: I2ea3b6f125ca24fcefeea8020c4a903ea018f4f7 Signed-off-by: Konstantin Maskov <sulwirld@gmail.com>
2023-02-08Enhanced User Management page error messageSivaprabu Ganesan2-3/+17
Description 1: When WebUI creates the user with an already existing username the error message will display the exact failure reason. Tested: Step 1: Login to webUI and navigate to user management page Step 2: Create new user with username "testUser1" Step 3: Create another user with same username "testUser1" Step 4: WEB UI will through the error message as "Username 'testuser1' already exists." Description 2: User can able to disable and change the root user via WebUI Now restricted to disable the root user and changing the root user privilege. Tested: Step 1: Login to Web UI with root user Step 2: Navigate to User management page Step 3: Try to modify the root user's details Step 4: WebUI won't allow to disable the user, username change and privilege change Step 5: Login Web UI with non-root user Step 6: Web UI won't allow to modify or delete the root user's details Change-Id: I0e38215b51fb058984664ec38ae9613e18043ed7 Signed-off-by: Sivaprabu Ganesan <sivaprabug@ami.com>
2023-01-25Added encodeURIComponent to CSR certificateSivaprabu Ganesan1-2/+5
Description 1: Downloading the CSR certificate data value without encodeURIComponent function is not supported in Firefox So added the encodeURIComponent function to download the csr certificate Tested: Step 1: Launch WEBUI on firefox Step 2: Navigate to Security and access, Certificates Page Step 3: Generate and Download CSR certificate (KeyPair Algorithm - EC and Key curve id - secp521r1) Step 4: After CSR Downloaded, copy the downloaded file to any of the linux machine Step 5: Try to create an https/ldap certificate via openssl on linux machine Result: Able to download the CSR certificate successfully and able to create https/ldap certificate via openssl Description 2: While downloading the generated csr via Web UI, the csr file is getting downloaded as ".txt" file but it should download as ".csr" file So changed the extension to ".csr" Tested: Step 1: Login to Web UI. Step 2: Navigate to Security and access, Certificates Page Step 3: Click Generate CSR Button and fill the required details Step 4: Click Generate CSR from the popup modal. Step 5: After CSR Generated an prompt will open and it will show download and copy option. In that select download, the csr certificate will download with ".csr" extension Change-Id: Ice176006a95afd53845d7696ce0eac88f02b1096 Signed-off-by: Sivaprabu Ganesan <sivaprabug@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-12-19Removed the MemorySizeGlukhov Mikhail1-8/+3
Removed the MemorySize field for DIMMs, because it is missing in Redfish ``` https://www.dmtf.org/sites/default/files/standards/documents/DSP8010.zip ``` Change-Id: I12f37a601e429060765960f3c66b5249b84eabe7 Signed-off-by: Glukhov Mikhail <mikl@greenfil.ru>
2022-11-11Display DIMM identify LED element only if LED is presentKonstantin Aladyshev1-0/+5
If identify LED for the DIMM module is not present, don't display control element for it. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I30f7e3ad9333874bbeb2050c421baf509bb833fc
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-10-24Add env variable toggle event logs delete buttonDamian Celico1-16/+28
Delete button in event logs page is shown or hidden based on the enviroment variable VUE_APP_EVENT_LOGS_DELETE_BUTTON_ENABLED Signed-off-by: Damian Celico <damianx.celico@intel.com> Change-Id: I10a46f5ef147865f954e6f94bcefec5c280ad3ea
2022-09-26Server manufacturer and Firmware version on Overview tabMichalX Szopinski2-14/+36
Add "Server manufacturer" and "Firmware version" to "Server information" card in Overview tab. Signed-off-by: MichalX Szopinski <michalx.szopinski@intel.com> Change-Id: If02516b1b721920f83c5fe42a7c5e79fbb1825ca
2022-09-26Check certificate file extensionDamian Celico1-7/+23
Checking the file extension type of uploaded certificates to redfish. Sends the file only if the file type is correct, otherwise shows error. Signed-off-by: Damian Celico <damianx.celico@intel.com> Change-Id: Idfc790bc8967333aed66c5c128334af4231dbea3
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-14Unable to Delete dumps and incorrect toast messageNikhil Ashoka1-1/+5
Unable to delete all dumps and displaying incorrect event log delete message Able to delete all the Dumps Approriate message is displayed in toast after deleting Event logs Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I1169bcd8e6308d50baf5c7ddcab5c511edcbc875
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-04Re-modeled Power restore radio buttonsKenneth Fullbright1-12/+23
When a user selects a radio button and saves, the selected setting should be patched. - Computed properties on generated bootstrap-vue radio buttons causes errors. - Re-modeled radio buttons to take Redfish api data on component render. - Mapped selected radio button value to patch the Redfish api property. - Added translations. Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: I22ce75d9ef840d7f0c2659bba855093e5b4559f4
2022-02-04Set table busy state on loadKenneth Fullbright16-22/+73
- Add busy prop to tables Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: I4416f12967c9a0ad6c8bb782c7d8de5c17fdd195
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
2022-02-04Security Panel add additional featuresNikhil Ashoka1-57/+141
Added RTAD under Network interfaces Added VirtualTPM under Network services Removed the sub-headings in Policies page Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I6290362cecdfe7f8cd7bfde20fcaca88b6bc2c09
2022-01-28Add values to system inventory tableNikhil Ashoka1-1/+7
TotalSystemMemoryGiB and CoreCount field is not present. Added TotalSystemMemoryGiB under Memory summary Added CoreCount under Processor summary Signed-off-by: Nikhil Ashoka <a.nikhil@ibm.com> Change-Id: I598abc7c05dd5113db0071ecd71bbcc32ad696c4
2022-01-28Add ability to view all the dumpsSukanya Pandey2-27/+54
The story is integration of these two API responses for their respective dumps: 1.Resource and Hostboot dumps: redfish/v1/Systems/system/LogServices/Dump/Entries 2.BMC Dumps: /redfish/v1/Managers/bmc/LogServices/Dump/Entries Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I24ded733e682d21904e92e2e8be1951e46d33b09
2022-01-07Fixed Assembly table Identify LED switchesKenneth Fullbright1-0/+1
Identify LED should toggle on/off successfully Rewrote the patch code to work with the Redfish schema Set LocationIndicatorActive to true: curl -k -H "X-Auth-Token: $token" -X PATCH -d ' { "Assemblies":[ {"MemberId" : "0", "LocationIndicatorActive":true}, {"MemberId": "1", "LocationIndicatorActive":true} ] }' https://${bmc}/redfish/v1/Chassis/chassis/Assembly MemberId is required to reference which assembly LED to toggle Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: Id0a3cf4dc533f6a0205be9fd037b13f92647cc00
2022-01-07Fixed vuex dumps errorsKenneth2-4/+6
Refactored getters and dispatch names were not matching the getters and actions strings, which made dumps not work. Made the getters and dispatch names match the vuex getters and actions strings to the refactored codebase. Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: I414a7f85ef70c270785b825b3b14f9dfb27a33a7
2022-01-07Fix invalid password validationSandeepa Singh1-1/+1
Bug: Success toast message appeared on invalid value of new password on profile settings page. Solution: Fixed the toast message for password change and timezone change respectively. Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I71b53dd02e4fdda040248c3ed9408be8d220454d
2022-01-07Add missing properties to Dimms tableSandeepa Singh1-6/+43
- Added the following properties: Base module type, Bus width bits, Capacity MiB, Data width bits, Enabled, Operating speed Mhz - Design has been updated for Dimms table Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ifd77071abd9544120c1904065275ccc00dd8d862
2021-12-28Remove hardcoded chassis in Manage power usageMichalX Szopinski1-1/+8
Simmilar modification to https://gerrit.openbmc-project.xyz/c/openbmc/webui-vue/+/42988 which removes the hardcoded chassis name from url on Manage power usage tab. With this modification we are displaying only informations about first power device. This change also fixes the overwriting existing power cap value on load. Signed-off-by: MichalX Szopinski <michalx.szopinski@intel.com> Change-Id: Ia164db9f2c50d98bc767c0f4729e9572a2d01da1
2021-12-23Fixed empty string in NTP server arrayKenneth1-1/+13
The UI should not patch an empty string to the NTP server array as this is not valid per redfish spec. Filtered out empty strings from the array. After that, re-render the ui and re-set ntp values. Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: I0086086dec5f49f7cb4305813b3c5ce0348368b5
2021-12-21Add assembly table component name to tableKenneth Fullbright1-1/+1
Replaced id key with name key Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: I7ce8798aac108841a13f24799cc35e7b5b261933
2021-12-03Network settings: Edit hostname and MAC addressDixsie Wolmers5-10/+278
Adds modals to edit hostname and mac address per interface. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I45d265c198afd1d9de9bb519a15a74e724f50f55
2021-12-03Network Settings: Add and Delete IPV4 and DNS addressDixsie Wolmers5-22/+363
Adds ability to add or delete static ipv4 and dns addesses per interface. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ie143ded2f173dd48f137471a684ba0d35ab0bf69
2021-12-03Network settings redesign - interface settingsDixsie Wolmers5-622/+584
First commit of the network settings redesign: - Adds the global network settings section for DHCP settings - Adds read only hostname, FQDN and MAC address, modal to edit each will be done seperately - Removes interface specific sections to refactor in next commit - Adds tab component to display ethernet data by interface - Ability to edit, delete and add ipv4 addresses and DNS will be done in separate commit Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ibb1db6894ee697fec9e6ea1b8312d041c61faaad
2021-12-01Correct Dump file extensionGunnar Mills1-1/+1
BMC Dump which is implemented in phosphor-debug-collector uses ".tar.xz" https://github.com/openbmc/phosphor-debug-collector/search?q=.tar.xz The Dump page was incorrectly exporting as tar.gz. Fix this. Change-Id: Id0b64a6e0ae92254484170a77e28a01f78c8d368 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2021-12-01Fix DHCPv4 displayKonstantin Aladyshev1-1/+3
Currently UI DHCPv4 element shows list of DHCP address dictionaries. Instead of showing the whole object as it is, display only the address of the first element in the list. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: Ifc1d8a2400f5eafba435355c3884c35392f73d74
2021-11-09Fix overview errorDixsie Wolmers2-40/+13
Console errors were related to the power and network card components from https://gerrit.openbmc-project.xyz/c/openbmc/webui-vue/+/46511 Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ib967229b74462ed8d5c28cbac24c2a2fbfc834c2
2021-11-04Fix wrong System Manufacturer in Hardware InventoryThang Q. Nguyen1-1/+1
System Manufacturer inside HardwareStatus -> Inventory mistakenly uses assetTag instead of manufacturer. Fix the issue by using item.manufacturer for Manufacturer. Tested: 1. Login to WebUI and check if System Manufacturer shows correctly. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ib856e8b66c49dbb71506f45c4c01dbcb79bea52c
2021-11-04Remove tableFormatter and use dataFormatter on assemblies tableDixsie Wolmers1-8/+8
tableFormatter was replaced with dataFormatter in a previous commit Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ib8d804a635d6773c55e09cb61014f51b74ff9ad5
2021-10-28Add Dimms table missing propertiesSandeepa Singh1-12/+65
- Added the following properties: Model, Description, Spare part number, Location Number, Memory type, Memory size, Identify led - Design has been updated for Dimms table on inventory page Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ife61396bd70c29df1b5ea55091adc8c6813b5cdc
2021-10-19Remove extra link in inventory quicklinksDixsie Wolmers1-6/+0
Extra system quicklink was added during the IA update. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I9ec10f853e71e7c287392d5462abe25115855f22
2021-09-24Rename TableDataFormatter mixin to DataFormatterDixsie Wolmers18-168/+165
Mixin was renamed to reflect usage on all components, not only tables. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ic962ba879fffa39b9f6f93446771fbf6f67915d0