summaryrefslogtreecommitdiffstats
path: root/app/server-control/controllers/power-operations-controller.html
Commit message (Collapse)AuthorAgeFilesLines
* Clean up iconsYoshie Muranaka2019-10-021-1/+10
| | | | | | | | | | | | | | | Clean up duplicate svg icons from assets directory. Created a statusIcon component to dynamically render status icons instead of using background-image in scss files. - Moved/removed on, off, critical, warning svg icons from assets directory - Updated background-image status icons to use <icon> or <status-icon> directive Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ic0f06d78b0861d6f60d40b2dcc0b80fd6dad2a88
* Fix rounded button stylingYoshie Muranaka2019-09-301-2/+2
| | | | | | | | | Add 'btn' class on Reboot and Shutdown buttons on power operations page to make sure borders aren't rounded. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I3369acd52ad1992d4340ef6c194b81b5dc0ce001
* Update boot override UI messaging visibilityYoshie Muranaka2019-09-251-5/+11
| | | | | | | | | | | | When a user changes the boot setting override option to 'None' on the Server power operations page, the Enable one time boot checkbox should not be checked and 'Pending one time boot' message should not be displayed. - Removed duplicate id and unused ng-change attributes Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ia8771c2984fe41c64dde9b0c702b82a3d8305d7f
* Add boot option override and TPM enable toggleDixsie Wolmers2019-08-211-51/+165
| | | | | | | | | | | | | | | | | - Adds ability to set a bootsource override to allowable target value - Adds ability to enable or disable TPM required policy - Replaces power operations confirm directive with bootstrap modal Tested: Confirmed override settings saved to redfish but unable to verify if settings are automatically set to disabled by petitboot after a one time boot. Passes DAP. Resolves openbmc/phosphor-webui#82 Resolves openbmc/phosphor-webui#90 Signed-off-by: Dixsie Wolmers <dixsiew@gmail.com> Change-Id: If0ffd6f9328939d70c7958ee11fb90bd20a1e685 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Refactor power operationsYoshie Muranaka2019-07-291-32/+36
| | | | | | | | | | | | | | | | | | Refactored power operations to use checkHostStatus function that checks host_status property provided by dataService, instead of polling for host/chassis status. Added property to check when a power operation is in progress. This property will show/hide the in progress message and make other operations unavailable until the operation completes. We were previously checking whether the server_state property was set to 'Unreachable', which enables the Power on button in the middle of a reboot, since the server_state changes to 'Off' during reboot. - Removed unused $timeout service Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I234749a9a875c7370b52bd23ed74d6e9617cf5e2
* Consolidate button stylesYoshie Muranaka2019-06-211-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | This patchset will create consistent button styling according to the styleguide and remove redundant button styles by creating reusable button classes. This patchset also implements a consistent strategy for including icon assets. Currently, svg icons are imported as CSS background images or inlined into the markup. Inlining an svg is preferred, especially when used with buttons or links so the colors can be easily changed for different states (hover, focus, disabled) without having to request variants. The icon provider allows us to inline svgs without cluttering the markup. Webpack config was adjusted to use svg-inline-loader when resolving svgs that are used by the icon provider directive. - All svgs were optimized to remove unncessary information. - Removed unused svg color variants - Moved icons used by icon provider to separate directory to avoid Webpack parsing the files twice - Small changes to navigation icons Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I1ca214b74fc502e6b6e760cfee88b48110237c43
* Remove unused powerOnConfirm and powerConfirmGunnar Mills2019-05-171-1/+1
| | | | | | | | There is no confirm for Powering on the system. These were unused. Change-Id: I4f5c3eb0a7676877ccbb0fef687ab525e585e428 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Rename variables to follow lowerCamelCaseGunnar Mills2019-05-171-10/+10
| | | | | | | | | | OpenBMC follows Google JavaScript Style Guide. https://google.github.io/styleguide/jsguide.html#naming-local-variable-names https://github.com/openbmc/docs/blob/master/CONTRIBUTING.md#javascript Change-Id: I0be270d8cb8f219f048626591e6b623c4307eef7 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Clean up headersbeccabroek2019-02-191-2/+2
| | | | | | | | | | | | | | 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 Server power operations page styleGunnar Mills2018-12-201-4/+4
| | | | | | | | | | | | | | | | On the Server power operations page, need a width: 100% for the "Select a power operation" header. Drop "Row" from power operations div to fix confirm modal being cut off. These are needed because of the move to Bootstrap 4. 84e114a Resolves openbmc/phosphor-webui#51 Change-Id: I7250daf2aed4ce5af7ed5acdf61a65cc38deac72 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* fix date/time representation in national localesAlexander Filippov2018-12-071-1/+1
| | | | | | | | | | | | | | | | | 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>
* Last power operationbeccabroek2018-08-111-5/+1
| | | | | | | | | | | | | | | Displays correct power operation time. In the case that there has not been a power operation, 'not available' is displayed. Resolves openbmc/openbmc#2957 Tested: The GUI displayed 'not available' when it received a 0 value and the correct date when an epoch was recieved. Signed-off-by: beccabroek <rebecca.shaw@ibm.com> Change-Id: I9573a1cdcd31ba4c02888bd46d195c91fdb916a7
* 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>
* 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-191-1/+1
| | | | | | | | | | | | | | | | 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>
* Do not display the 'Last power operation' timeCamVan Nguyen2018-04-131-0/+4
| | | | | | | | | | The 'Last power operation' time is incorrect. The time shown is the last refresh time instead of the last time a power operation was performed. We need to implement a REST call and back-end support to get the correct time of the last power operation. Change-Id: Ic81edf22bd3450b2558b66b7f911634122f86da0 Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* Changing the text Quiesced to ErrorIftekharul Islam2018-03-271-1/+1
| | | | | | | | | | As per discussion here openbmc/openbmc#2925 Changing the text Quiesced to Error Fixes openbmc/openbmc#2925 Change-Id: Icd360a91335c8dd77cfbde4faa868cce6a286e64 Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com>
* Add appropriate message during server unreachable stateIftekharul Islam2018-03-071-3/+1
| | | | | | | | | | | | When system state is in Unreachable, there is no option under "Select a power operation. Adding the appropriate message according to the discussion in the fixes link below. fixes openbmc/openbmc#2843 Change-Id: Id0d1d74b2bb7012f1cb085262f5c0d2fece2ea62 Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com>
* Modernize web GUI and make it installable on BMCEd Tanous2017-11-061-4/+4
| | | | | | | | | | | | | | | | | | | 1. Move from gulp server to webpack. This allows the proper compression to allow the webui to be embedded in the BMC. 2. Update js paths to use requires, not hardcoded paths. This was required to make the packaging work correctly. 3. Add babel config to do translation. 4. Update angularjs directive calls to use the angular 1.6 syntax for promises intead of success and fail. https://docs.angularjs.org/guide/migration#migrate1.5to1.6-ng-services-$http 5. As a consequence of using NPM/webpack, the versions of angular and associated modules that were checked in have been updated. Change-Id: Icb71e2eedb0d9a8943fc914f9dc4be11d0983c00 Signed-off-by: Ed Tanous <ed.tanous@intel.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Updating images and stlesIftekharul Islam2017-11-021-5/+5
| | | | | | | Updating images and styles after code merge conflicts Change-Id: I96490926caa41d13e4d625ff67f6a463d7819d34 Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com>
* Changing the server name from Quiesced to Standby in header and power ↵Iftekharul Islam2017-10-091-2/+3
| | | | | | | operation page Change-Id: I5a2358fa4783a58d1d6ab73f9901e1f8fa2f54a8 Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com>
* Add hostname as well as server name in power operations status barIftekharul Islam2017-10-091-1/+1
| | | | | Change-Id: I5eda360b9528eb9f61dd6783f4a73ee37b697d34 Signed-off-by: Iftekharul Islam <iffy.ryan@ibm.com>
* changed quiesced term to Standby based on user feedbackMichael Davis2017-10-091-2/+2
| | | | | Change-Id: I16a067362d425e955213c40d698e048c6842647d Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* accessibility fixes and minor css changes.Michael Davis2017-10-091-9/+6
| | | | | | | | - added aria-hidden = "true" to prevent icons to be read by screen readers - moved code on pages into "page-header" for better consistency Change-Id: I3f497b2707991f7f628892a05734eea183a0d01d Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* Accessibility fixes:Michael Davis2017-10-091-6/+4
| | | | | | | | | - changed buttons to spans since not being used in forms - added aria roles to html elements - changed low contrast colors Change-Id: I56e784b226baa7f9b24346446a0a023fcea633d4 Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* power operations styling fixesMichael Davis2017-10-091-2/+1
| | | | | Change-Id: Iead8504909d79c786788097c503d5d11132cc5dc Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* UI changes and fixes based on QA feedbackMichael Davis2017-10-091-1/+1
| | | | | Change-Id: I13bae30e86330a8831d35f1d8a2f7da821324e37 Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* added alt tags for accessibility. removed confirmation descriptions to ↵Michael Davis2017-10-091-6/+6
| | | | | | | match designs. Change-Id: Iadbb5502e6a487ca22f488dfbc29daa29f1dde61 Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* Style changes for power-ops pageMichael Davis2017-09-201-11/+11
| | | | | | | | - numerous incorrect CSS classes. - compacting space to make page height shorter. Change-Id: Ia40d82dea3eda30ebd3515d1c91c406b054aa5ae Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* Text style fixesMichael Davis2017-09-201-3/+3
| | | | | | | Numerous minor style corrections (ex. lower vs upper case) Change-Id: I0c77f590847d4978ac3ffbad82fc2acd481b70f9 Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* Change navigation structureIftekharul Islam2017-09-201-0/+55
Change-Id: I12c819293ce1eda188dc9f257ae9370f1b73cb18 Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
OpenPOWER on IntegriCloud