summaryrefslogtreecommitdiffstats
path: root/app/common/directives
Commit message (Collapse)AuthorAgeFilesLines
* Resolve accessibility isssuesDerick Montague2019-04-083-9/+8
| | | | | | | | | | | | | | | | | | - Remove unecessary aria-roles - Associate label elements with form elements - Remove extraneous markup on Network settings page - Update generic markup to use definition list when appropriate - Add aria-labels and aria-expanded to accordion triggers Tested: Accessibility issues tested in using Lighthouse in Chrome Developer tools Audit section and Dequeue Axe extension. Manually tested clicking on labels set focus on the form elements. Visually tested of the Network Settings page in Chrome, Firefox, and Safari to verify layout changes. Resolves openbmc/phosphor-webui#76 Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ib974c623e9d3b74e74e1f374c21e8191732ec26a
* WebUI: Adding Filters support to system logsAppaRao Puli2019-03-192-0/+78
| | | | | | | | | | | | | | Adding Filter support to system logs page - Severity filter. - Date filter with start and end date. - Filter by Sensort Type. Tested By: Loaded System logs page with type selection 'Event' and check all filters. Change-Id: I41eba4cd59c0f3c2933637bf0e207a3eca3214f1 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* WebUI system logs implementationAppaRao Puli2019-03-192-10/+25
| | | | | | | | | | | | | | | | | | | | This commit implements the webui logs page which will show all system logs depends on user selection( SEL or Event or Oem). This is based out of redfish systems log services. - View logs with pagination. - Search filter for logs view. - Sort option with Type, Id, Severity, Date. - Clear logs. - Export logs. UnitTest: - Existing bmcweb send the system logs of EntryType "Event". So Loaded UI, selected Type "Event" and validated all the above mentioned operations. Change-Id: I0384e475f7913ca66b6db5d64831583fb382f8d5 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* Set SOL Screen dynamicallyYang Cheng2019-03-061-1/+44
| | | | | | | | | | | | | | | | | | | | | | | To make EWS SOL Screen size match the real BIOS console, need to set the screen dynamically. Web page get terminal resolution from config.json and calculate frame width and height base on the resolution and fontsize. Web page use this width and height to change the screen size. If no related configuration in config.json the SOL Screen will keep the original size before this code change. Tested By: Add "customConsoleDisplaySize": {"width": 100, "height": 32} to config.json, and open EWS Server Serial over LAN console page, the size of console client can match 100*32 characters. Set console redirection to 100*32 in BIOS setup page, the page show correctly in this SOL client in EWS. After enter OS, the linux console can show correctly in SOL client. After remove "customConsoleDisplaySize" in config.json, the size of console client in EWS show the same as the code change in this patch. Change-Id: I09bfe4e67db1387abcd57ee3a13b912957cf95b0 Signed-off-by: Yang Cheng <cheng.c.yang@linux.intel.com>
* Add Custom Key for SOL on webuiYang Cheng2019-03-042-0/+139
| | | | | | | | | | | | | | | | | | | | | | To support VT100+ extensions for SOL on webui, add custom key into xtermjs to handle key Backspace, DEL, HOME, END, INSERT, PAGE UP, PAGE DOWN, F1 - F12. Tested By: After added item "customKeyEnable": true, "keyType" : "VT100+" into iconfig.json. Under EFI SHELL: Backspace, DEL, HOME, END, INSERT, PAGE UP, PAGE DOWN, F1 - F12 keys can work as local keyboard in Web SOL. Under linux with $TERM=vt100+: Backspace, DEL, HOME, END, INSERT, PAGE UP, PAGE DOWN, F1 - F12 keys can work as local keyboard in Web SOL. If not add "customKeyEnable" or "keyType", into config.json, Backspace, DEL, HOME, END, INSERT, PAGE UP, PAGE DOWN, F1 - F12 keys can work correctly in linux OS with $TERM=vt220 in SOL. Other keys such as a-z can always work in SOL no matter "customKeyEnable" or "keyType" is inserted into config.json. Change-Id: Ifb196ec37080781033c0d6a3b0688baa7d0080b5 Signed-off-by: Cheng C Yang <cheng.c.yang@linux.intel.com>
* Clean up headersbeccabroek2019-02-191-1/+1
| | | | | | | | | | | | | | Updates headers to match style guide and makes them consistent throughout pages in the GUI. Removes instances where a header element existed and a different header style was being applied. For example, <h2 class="h4"> Tested: Ran GUI locally and verified that headers look consistent and have the appropriate sizing while using Chrome, Firefox and Safari. Change-Id: I187136298ed2bfd36c40c2b80d5a4f20947cbe56 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Fix layout for responsive design: HeaderRyan Arnell2019-02-151-2/+3
| | | | | | | | | Get rid of "BMC host/IP address" & "server info" text, make the buttons tighter and make more buttons visible in header so that the information is more useful to users in tablet view. Change-Id: I6b4166390b1828fca265e7bb56f51106b4e6f21b Signed-off-by: Ryan Arnell <iffy.ryan@ibm.com>
* Form validation on login pagebeccabroek2019-02-021-0/+11
| | | | | | | | | | | | | | | | | | Using ngMessages, adds form validation to login page. Also creates a directive, hasError, to be used to validate form field by passing in a boolean. This is a proposed pattern to be used moving forward, as form validation is added to additional pages. Validation error messages are shown on $touched and on submit. Unreachable Server and Invalid username and password error messages remain until input is no longer $pristine after form submission. In addition, this removes unneeded and unused css styling Resolves openbmc/phosphor-webui#47 Change-Id: I7a067af67ac74d4cf2977d10f66445720ecae9eb Signed-off-by: beccabroek <beccabroek@gmail.com>
* Fix error log resolveGunnar Mills2019-01-281-4/+9
| | | | | | | | | | | | | logging/entry/<entryId>/attr/Resolved is a boolean as such send true when resolving. Before the function was always returning successful, fixed this and log to the console when it fails. Tested: Resolved multiple error logs and see the fail in the console on a fail. Change-Id: I60496f30f9241ffb6b6b73cf87b7481bea10b24f Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* WebUI: User management full implementation.AppaRao Puli2019-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Added webui user accounts management. This support both redfish and rest based backend API calls depending on redfishSupportEnabled flag. It does following actions: - View all user list and there properties like name, privilege, enabled state, Locked etc.. - Create new user account. - Delete existing user account. - Update the existing user properties like password, privilege, enabled state. Unit Test: - Viewed all user information is proper or not. - Created new user and validated. - Deleted specific user and checked. - Modified user info and validated the change. All tests are done by enabling and disabling redfishSupportEnabled flag using conifg.json. Change-Id: Ifecf63844dc42c44771509958bf75947a92997ac Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* Remove style tags from svgEd Tanous2018-12-211-4/+4
| | | | | | | | | | | | | | The style tags in the svg inline images will trigger an issue when the browser attempts to interpret them, and flags them as inline-styles (which we want to disallow via policy). This commit removes them, which, given that they shouldn't have been there in the first place, should have no ill effects. Tested By: Launched GUI, observed button behavior did not change Change-Id: I9b6443051fd30770853e589fcd2a7231f85fd082 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
* Fix issue about menu not disappearing on firmware pageRyan Arnell2018-12-213-2/+31
| | | | | | | | | | | In firmware update page "More info” dialog did not disappear until it is clicked again. With this push users can click anywhere outside the menu and it disappears. Resolves openbmc/phosphor-webui#32 Change-Id: I1519caf2428c702af03fb0e4dd8a08d0c0588abf Signed-off-by: Ryan Arnell <iffy.ryan@ibm.com>
* fix date/time representation in national localesAlexander Filippov2018-12-072-2/+2
| | | | | | | | | | | | | | | | | Added "localeDate" filter to present date and time in preferred format: - the date will be displayed as: 'Dec 3, 2018' - the time will be displayed in locale preferred format. - the timezone will be displayed as abbrev or GMT+/-offset. At the 'Date and Time setting' the time zone name will displayed in long format if it is possible. All text parts of date/time representation will be in English. Resolves: openbmc/phosphor-webui#42 Change-Id: I2fdbb47c62dfc5000039b0c00a20f64a9a389fc6 Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
* Remove AngularUtilsbeccabroek2018-12-041-0/+699
| | | | | | | | | | | The AngularUtils library is no longer maintained. This brings the pagination directive used on the log events page into the project and removes it from package.json Resolves openbmc/phosphor-webui#10 Change-Id: I8235ef6ff325c9b0d8440d203816a38ded5d3890 Signed-off-by: beccabroek <beccabroek@gmail.com>
* log-filter: remove tip for date formatAlexander Filippov2018-11-161-3/+3
| | | | | | | | | The date picker already has the tip for the date format, which one uses locale settings. This commit removes the tip from the label. Change-Id: Ib45b6c620dab2031cf0f36c5389111df7cb91ef5 Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
* Move to Bootstrap 4Gunnar Mills2018-11-151-8/+10
| | | | | | | | | | | | | | | | | | | | | Bootstrap < 4.1.2 has the following CVE: https://nvd.nist.gov/vuln/detail/CVE-2018-14041 Removed bootstrap-theme.css due to "Replaced the separate optional theme with configurable options via SCSS variables (e.g., $enable-gradients: true)." Added "width: 100%" to a few places where width 100% was no longer getting inherited. Moved a few elements and adjusted styles to get the same look as before. See https://getbootstrap.com/docs/4.0/migration/ for more information. Tested: Manually on a Witherspoon. Change-Id: I0a72665ac1ca6eacd0b553a585b1fb15e14ae62c Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Display log events in user timebeccabroek2018-11-061-62/+64
| | | | | | | | | | | | | | | | | Allows user to display events in their timezone or in UTC. Previously allowed either ETC or UTC, but listed ETC as 'user timezone'. Updates date time page from GMT offset to UTC offset for overall consistency. Also updates overview page to list critical events in user timezone Resolves openbmc/phosphor-webui#36 Tested: changed timezone settings locally and validated that correct timezone and UTC offset was presented in the UI. Change-Id: I89ca5045eeb789527aa07f5b1baebaa3fbd6b1fa Signed-off-by: beccabroek <beccabroek@gmail.com>
* Consistent date time formatbeccabroek2018-10-291-1/+1
| | | | | | | | | | | | | Format on event log page and overview page of date and time should match the format of 'data last refreshed' with the exception of the timezone being listed with the event log. Resolves openbmc/phosphor-webui#21 Change-Id: I21d43e45f45d2f9eebc7c08f4345201bef354a06 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Remove multi-server controllerGunnar Mills2018-10-233-20/+1
| | | | | | | | | | | | | | | | | Removed all pages associated with the multi-server feature. Before, this page was visible at /multi-server/overview. This page is not used and there is a lot of work to get multi-server working. There was also a lot of hardcoded values in the multi-server controllers. This code could still be used in the future by looking at the git history or checking out an earlier tag. Removing these controllers saves us a few KBs in the image. Tested: Manual regression testing on a Witherspoon. Change-Id: Ic2f727a80404291338a66cde4857cf1f4ad228b2 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Fix setting image priorityGunnar Mills2018-10-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | Let's say there are 2 images, A and B. A has a priority of 0 and B has a priority of 50. Lowest priority is the image used to boot from and appears at the top of the image tables (A in this case). If the user wanted image B to be the image with the lowest priority, they would have to hit the up arrow 50 times in the old logic. Move to setting the priority based on the image above, for the up arrow, or below, for the down arrow. If 2 images have the same priority, the image whose priority is being updated wins and the image who already has that priority gets bumped up 1, this is why when moving an image down we set to the below image's priority +1, but don't need this -1 when moving an image up in the table. Tested: Can still change the priority. Change-Id: If87e1d863ab909c276247072cc45e40b67cf686b Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* log-search-control.html: Fix indentingGunnar Mills2018-09-271-6/+6
| | | | | Change-Id: I11074705553aba7b1b8a8ebc1a97b472a5fb1de5 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Remove tabs from HTML filesGunnar Mills2018-09-256-210/+210
| | | | | | | | | | | | From https://google.github.io/styleguide/htmlcssguide.html "Indentation Indent by 2 spaces at a time. Don't use tabs or mix tabs and spaces for indentation." Tested: Manual regression testing on a Witherspoon. Change-Id: Ief7137dabc869b73b73f9947337fbb0abb5ca497 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Make wording consistentGunnar Mills2018-09-201-1/+1
| | | | | | | | | | | The IBM design team identified this wording as inconsistent. In the tables below the "running" image is called "Functional", here it is called "In-memory". Change to "Functional" to match the table below. Change-Id: I4b1a45f3cbcc578b0f807577dd2c3a9c54714a02 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Set time fieldsGunnar Mills2018-09-131-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed 5 commits to set the date-time fields: time mode, time owner, BMC time, and host time. Also included is a commit to display the timezone. Set time mode Moved the selection of NTP vs Manual (time mode) to a radio button. Added code to allow the user set it. Tested: Set the time mode on a Witherspoon. Signed-off-by: Gunnar Mills <gmills@us.ibm.com> Set time owner The time owner is now a dropdown and is set when "Save settings" is pressed. Tested: Set the time owner on a Witherspoon Signed-off-by: Gunnar Mills <gmills@us.ibm.com> Set the BMC and Host time The BMC and host have the same time except when time mode is split. Only need to set BMC or host time when time mode is not split. When time mode is split, set both. Use time owner to determine which to set. https://github.com/openbmc/phosphor-time-manager#time-settings Have date and time as two separate inputs, this is due to Firefox not supporting "datetime-local". The "date" and "time" input fields are more widely supported. https://caniuse.com/#feat=input-datetime The idea for 2 separate input fields came from: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local Must set the time mode and time owner before setting the time, this is due to permissions of who can set the time. Tested: Set the date and time on a Witherspoon. Signed-off-by: Gunnar Mills <gmills@us.ibm.com> Add NTP Servers The user can now view and set NTP Servers. Moved setFocusOnNewInput to a common directive since it is used on the NTP Servers and the DNS Servers on the network page. Even though NTPServers is a network interface specific path (e.g. /xyz/openbmc_project/network/eth0/attr/NTPServers) it acts like a global setting, openbmc/phosphor-time-manager#4. Using eth0 for setting and getting the NTP Servers until NTPServers is moved to a non-network interface specific path. In Redfish, NTPServers is a non-network interface specific. Tested: Set NTP Servers on a Witherspoon. Signed-off-by: Gunnar Mills <gmills@us.ibm.com> Add timezone Added the timezone for the host and bmc date time. The timezone looks like "GMT-0400 (EDT)" or "GMT-0500 (CDT)". I got this from https://stackoverflow.com/questions/1091372/getting-the-clients-timezone-in-javascript and choose this formatting over something like "America/Chicago". Tested: See the timezone on a Witherspoon Change-Id: I59a4449d63f73a6ed14cb934f3d8577e46620c4e Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Switch to xtermbeccabroek2018-09-112-30/+20
| | | | | | | | | | | | | | | | | Switch to xterm from hterm in the GUI, as it supports more encoding styles. Was seeing errors in console thrown by hterm during boot. Also resolves the issue of text wrapping observed in the below issue. Resolves openbmc/openbmc#3262 Tested: Errors are no longer thrown during boot related to encoding. xterm displaying console messages and delivering messages. Change-Id: I9f39c3616d7ff2c1045ff1ad29f603c65784ab30 Signed-off-by: beccabroek <beccabroek@gmail.com>
* SOL console in new window buttonbeccabroek2018-09-102-2/+11
| | | | | | | | | | | | | Created button to open SOL console in new window. Resolves openbmc/openbmc#3153 Tested: Verified that button brings up new window and that SOL console functions in new window. Change-Id: Idf8ff314e9a14cba0820823afd1ce60e4b3bbc4f Signed-off-by: beccabroek <beccabroek@gmail.com>
* Create SOL console directivebeccabroek2018-09-102-0/+66
| | | | | | | | | | | | Created serial-console directive in order to avoid duplicate code between remote-console-controller and remote-console-window-controller. Tested: Verified that SOL console functions as expected after refactor Change-Id: I8cfc8e78cc2325c813e5bef608886859df6b3ab8 Signed-off-by: beccabroek <beccabroek@gmail.com>
* Create new SNMP Settings pageGunnar Mills2018-09-101-3/+5
| | | | | | | | | | | | Created new page to display SNMP Managers. Display the SNMP Manager's IP and port. https://github.com/openbmc/phosphor-snmp/blob/master/docs/snmp-configuration.md Future commits will allow the user to add and delete SNMP managers. Change-Id: Ia5d633c11728a580c06b25c412e8673925cdc597 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Create "Date and time settings" pageGunnar Mills2018-09-051-1/+3
| | | | | | | | | | | | | | | | | There was a Date and time page in the GUI. Enhanced it to display the BMC time and added it to the menu so users could navigate to it. Future things planned for this page: Setting the time, time mode, and time owner. Adding a NTP server. More information can be found in the time manager README: https://github.com/openbmc/phosphor-time-manager/blob/master/README.md Tested: See the BMC time. Change-Id: Ia3ac2385cb45ec8009ed6df0899c3410fe18ef64 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Move to clang-format-6.0Gunnar Mills2018-09-045-5/+0
| | | | | | | The docker image moved from clang-format-5.0 to clang-format-6.0. Change-Id: I3c615d7df1f21569531b4dc2cb0bc4f425cb43f8 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add Power Usage PageGunnar Mills2018-08-241-6/+8
| | | | | | | | | | | | | | | | | Created a new page, "Manage Power Usage". This page is under the "Server control" tab. This new page currently just displays the power consumption. Future commits will allow the user to set the power cap from this page. One day, things like power consumption trending data could also be on this page. There was a blank unused controller which was for similar things, removed it. Tested: See the page and the consumption data. Uploaded screenshots to openbmc/openbmc#3221 Change-Id: I9f97c58a086f34c1c1990c03d5e05b081619bd5c Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Copy to clipboard button to include titlebeccabroek2018-07-272-1/+4
| | | | | | | | | | | | | On the Event Log page, copy button previously copied error only. Updates to also include title of event. Resolves openbmc/openbmc#3146 Tested: The copy button now copies the title in addition to the error to the clipboard. Change-Id: I9580a620046203cdcb2025d0ea1cf0030e0851cb Signed-off-by: beccabroek <rebecca.shaw@ibm.com>
* Fix change priority down arrow logicGunnar Mills2018-07-271-2/+2
| | | | | | | | | | | | | | If the Boot priority was an "Active" image then a "Functional" image. The down arrow would be grayed out on the "Active" image. It should not have been grayed out, i.e. the user should be able to lower the priority on an "Active" image if there is a functional image below it in the table. Resolves openbmc/openbmc#3228 Tested: Tested this case and uploaded an image of the result to 3228. Change-Id: I6033886354f76671a4d33c4d8a79097428311e93 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Date validation on event log filteringbeccabroek2018-07-211-2/+2
| | | | | | | | | User can no longer select an invalid date range. Resolves openbmc/openbmc#3158 Change-Id: Ife8479b465786a617a1746fdbc5b6359f3c36e40 Signed-off-by: beccabroek <rebecca.shaw@ibm.com>
* Fixed spelling errorsRebecca Shaw2018-07-191-1/+1
| | | | | Change-Id: I4b668b6246508d3bedda75ca179da1615516bad4 Signed-off-by: Rebecca Shaw <rebecca.shaw@ibm.com>
* Update the server power state dynamically in GUIJayashankar Padath2018-06-281-0/+43
| | | | | | | | | | | | | | | | | | | This uses websocket mechanism to retrieve the server power state and update the same. Resolves openbmc/openbmc#3102 Tested: Running GUI locally and verified the following scenarios: - Power on operation from GUI and host command line - Power off operation from host command line - Warm reboot operation from GUI - Cold reboot operation from GUI - Immediate shutdown operation from GUI - Orderly shutdown operation from GUI In all of the above scenarios state change is notified to GUI at right time. Change-Id: I1c97ae10419078dfe16a1d097082580c29827fb7 Signed-off-by: Jayashankar Padath <jayashankar.padath@in.ibm.com>
* Avoid unexpected error displays from web guiJayashankar Padath2018-06-071-1/+1
| | | | | | | | | | | | | | | | | Unexpected error is seen from the web gui due to the connection loss during below known scenarios: 1. Initiating Reboot BMC from web gui 2. Restart of the nginx service 3. Trying to login to the web gui after a long idle time Fix avoids unexpected error display from web gui. Resolves openbmc/openbmc#3211 Tested: Running GUI locally and verified that unexpected error is not coming when BMC reboots Change-Id: I93974c53ab4fb414b938229d39fdf872b45a3e2c Signed-off-by: Jayashankar Padath <jayashankar.padath@in.ibm.com>
* Display event log ID and description if presentMatt Spinler2018-06-052-2/+20
| | | | | | | | | | | | | | | | | | | | If the Event ID and Description event log properties are present, display the error log title as <ID>: <Desc> and move the Message property down into the box with the other additional data fields. If they aren't present, or not filled in (which in the case of the event ID is a value of 'None'), leave the title as it currently is, which is the Message property. Tested: Verify UI fields when the event ID is valid, when it's still in the event data but not valid, and when it isn't in the event data at all. Resolves openbmc/openbmc#3056 Change-Id: I455fc257b7d3713aceee2975d5240fb226cfa87e Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Format code using clang-format-5.0Andrew Geissler2018-05-2412-314/+304
| | | | | | | | Once merged, this repository will have CI enforce the coding guidelines in the .clang-format file. Change-Id: I96a05972665f9c67625c6850c3da25edc540be06 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Run js-beautify and fixjsstyle on codeAndrew Geissler2018-05-2413-411/+433
| | | | | | | | | | | Found this pointer on stackoverflow: https://stackoverflow.com/a/31660434/5508494 End goal is to get the code formatted well enough that clang format will run correctly against it. Change-Id: I80053e78d253d8eee49233e42d55e5807ae8fdc8 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Remove multi-server controllerGunnar Mills2018-05-231-4/+1
| | | | | | | | | | After logging in the GUI was trying to load multi-server-recent-controller.html. Resolves openbmc/openbmc#3194 Change-Id: I109af0a9a94d0e0f3729d383473be43de91bb22f Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Remove Web UI versionGunnar Mills2018-05-171-1/+1
| | | | | | | | | No reason to manage a version number separately from the overall project. Remove the version and rename the element. Based on feedback on https://gerrit.openbmc-project.xyz/#/c/10364/. Change-Id: I055445db8bdda36dc408c057132e6e69b8935a6b Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Allow a "Failed" image to be "Activated"Gunnar Mills2018-05-151-1/+1
| | | | | | | | | | | | A failed image is an image that was unsuccess during activation. The firmware code allows these images to be activated so should the GUI. Resolves openbmc/openbmc#3144 Tested: Verified I see an "Activate" button on a "Failed" image. Change-Id: I3a5623d186dafd7656a045ba28e6bd636ee39420 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Gray out the 'Boot priority' down arrow keyCamVan Nguyen2018-05-141-3/+3
| | | | | | | | | | | Gray out (disable) the 'Boot priority' down arrow key for a 'Functional' or 'Active' image if the remaining images are 'Ready' images. Resolves openbmc/openbmc#2965 Change-Id: Id8dad6b5a8d7376fe2c1f167a2043aae87916884 Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* Rename to "Serial over LAN console"Gunnar Mills2018-05-131-1/+1
| | | | | | | | | | | We ran several customers through usability testing of the GUI last week. There was some confusion about "Serial over LAN". Adding console should help clear up this confusion. Renamed on both the overview page and the menu. This now matches with the SOL console page title. Change-Id: I73fc6964f4269a5332832af703c7198015be6a49 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Move last refresh time format to 'medium'Gunnar Mills2018-05-041-1/+1
| | | | | | | | | | | | | | | | From https://docs.angularjs.org/api/ng/filter/date: "'medium': equivalent to 'MMM d, y h:mm:ss a' for en_US locale (e.g. Sep 3, 2010 12:05:08 PM)" This is a similar format as to what was present on the GUI before for en_US. Letting the browser choose the format, is important. Still displayed in user's timezone. Before: 1:52:11 May 01 2018 After: May 1, 2018 1:52:11 PM Change-Id: Iff2769a22125b1ea4f6f375a6b2b6866438149c5 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Display red 'error' icon for Error stateCamVan Nguyen2018-05-041-1/+1
| | | | | | | | | | - Display a red 'error' icon vs a yellow 'warning' icon when the Server Power is in an Error (Quiesced) state. Resolves openbmc/openbmc#3149 Change-Id: I0d23d9406370e5b49d554b979aaedb5754601e3b Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* Server Overview: Fix capitalization on "Server configuration"Gunnar Mills2018-04-301-1/+1
| | | | | | | | | The other tabs are "Server health", "Server control", and "Server overview". Have "Server configuration" follow the same capitalization convention. Change-Id: If794c36cddc6fd3118b41ca780140c409f11d1f7 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add fixes for power operationsCamVan Nguyen2018-04-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Fixes applies to 'Power on', 'Warm reboot', 'Orderly shutdown', and 'Immediate shutdown' power operations. Fixes include: - Verifying that the chassis and host transition through the expected states for each power operation. During which time a spinner will be displayed. A timeout of 5 minutes for each state transition has been added. - Displaying the current state of the host in the 'Server power' and 'Current status' bar. The state displayed will change as the host transition through different states even as the spinner continues to spin. - Displaying an error pop-up with reason for failure when the power operation fails. Resolves openbmc/openbmc#2758 Resolves openbmc/openbmc#2787 Resolves openbmc/openbmc#2803 Change-Id: I514e030f9df7bd4d8b53634408f0449cd9abada9 Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* Add fixes for cold rebootIftekharul Islam2018-04-193-8/+28
| | | | | | | | | | | | | | | | This fixes the cold reboot issue with the following steps - It applies the command to shut off the chassis. - Then verify the chassis is off. It checks for every 5 seconds. During this time the spinner displays. A 5min timeout has been added. - Once the chassis is off, it turns on the host. fixes openbmc/openbmc#2795 Change-Id: I119a1c95e57c10ccee27be1512a1fc38cde307fa Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com> Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
OpenPOWER on IntegriCloud