summaryrefslogtreecommitdiff
path: root/src/views/AccessControl
AgeCommit message (Collapse)AuthorFilesLines
2021-02-25Added test hook for SSL certificates page.Sandeepa Singh1-0/+1
Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: Ia1647adcf2499cafe749b91e444c1fc97401cd7a
2021-02-11Added test hook for client session pageSandeepa Singh1-3/+4
Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I5ba8243fcc0ba561bfab18503c2c1ba5aebd47c0
2021-02-02Remove account type assignments from privilege role tableDixsie Wolmers1-36/+0
The removed information will be displayed in the user table when it is available in Redfish. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I867a7792f2b2335456baf9934e8ef593a52b11e5
2021-01-27Fixed icon or text only button accessibilitySurenNeware1-0/+1
- Add sr-only element to icon only buttons - Removed title from text only buttons Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ica57dec70401c04a9d7506306a406fe394e52113
2021-01-09Add translated cancel title to all modalsSukanya Pandey5-0/+10
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I24ea692467077eddc7a74b86a9ba56d49818404b
2020-12-16Add client sessions pageSukanya Pandey2-0/+294
- This page will show the list of sessions that are currently connected to the BMC. APIs used: - To get all the sessions API used is `/redfish/v1/SessionService/Sessions` - To delete the sessions API used is `/redfish/v1/SessionService/Sessions/<session id>` Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: Ia81f62cbbea749809b9b7f7e62356cfe2db7fc18
2020-12-09Fix loading hangYoshie Muranaka1-1/+2
Import and add loading property to pages that are disabling forms based on LoadingBarMixin loading property. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I1669bff2572422327566a3afe023633eb0b729f4
2020-12-03Remove page not found error in LDAPSukanya Pandey1-3/+3
- When adding role groups, the URL was being modified resulting in a 404 response Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I0cf2653e83e85bc3bd6eca4a86bb065f8f8dd179
2020-12-01Update data option for components using Mixin dataSurenNeware2-2/+16
- Removed all the data options from all the mixins. - Updated component data property relying on data property defined in mixin. - Export data property from mixin file itself. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I4aeffcb333bbaf5b78bcadd711b3169b0b4cb10e
2020-12-01Add label to table checkboxesDixsie Wolmers2-4/+12
- Span with class sr-only added to table checkboxes - Verified passed DAP Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: If6dff636762e6cc70c2f5b345827aa1385a31c97
2020-11-28Fix LDAP accessibility violationsYoshie Muranaka1-203/+201
- Fixed "<fieldset> element does not have a <legend>" by removing a label-for prop - Fixed "Form control has more than one label" by removing a wrapper <b-form-group> that disabled controls while the page was loading - Existing table violations to be addressed separately Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I7c90f361cc982b54ddd2b7893ba65b2e5489f5cd
2020-11-23Add new style for form file componentSurenNeware1-13/+11
- Now only add file button will be visible. - And selected file name will come down to the button. - Changed form file component from custom type to plain. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ib59135691495c4dddfdbbae0e4228b55cdfda2a8
2020-11-13Align button iconsDixsie Wolmers1-1/+1
- Fixes button icon and text alignment - App header buttons to be addressed separately - Button documentation will be addressed in separate commit - Aligns form input buttons: datepicker, clear search, and password toggle - Moves title from icon to button for icon only buttons - Aligns validation icon with form input buttons Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Ie28d7d7dd7303ab6bf1897d1fa569e1580cc2f9d
2020-11-12Resolve custom-event-name-casing lint warningsSukanya Pandey3-7/+7
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I9eea4eac3b8cacc216fc9ad1011e51622622e75f
2020-11-06Resolve vue/no-unused-vars lint warningsSukanya Pandey2-2/+2
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I25ca1e451af5e793cd864d484572049e04cf09bc
2020-11-04Fix Safari default dropdown on Local user management pageYoshie Muranaka1-2/+7
Currently when creating a new user on the Local user management page, the 'Administrator' privilege appears to be selected by default but in Safari causes inline validations errors if attempting to submit the form without manually choosing an option from the dropdown. This commit will add a default "Select an option" item from the dropdown to avoid inconsistent default select behavior in Safari. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I779fd62a516faf7dc88fe4992ec36c0c23a44cce
2020-11-03Fix eslint no-prototype-builtins errorsYoshie Muranaka2-3/+4
Made updates to TableToolbar, ModalAddRoleGroup, and ModalUploadCertificate components. https://eslint.org/docs/rules/no-prototype-builtins Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ic143cd244b288bc089a9416699d7c3d4349a500c
2020-11-03Update linting packages to use latestDerick Montague11-295/+291
- 99% of changes were small syntax changes that were changed by the lint command. There were a couple of small manual changes to meet the property order patterns established as part of the vue:recommended guidelines. There are rules that were set from errors to warnings and new stories are being opened to address those issues. Testing: - Successfully ran npm run serve - Successfully ran npm run lint - Verified functionality works as expected, e.g. success and failure use cases - Resolved any JavaScript errors thrown to the console Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ie082f31c73ccbe8a60afa8f88a9ef6dbf33d9fd2
2020-11-02Update local user management role tableYoshie Muranaka1-2/+2
Updated role table to indicate Operator and Readonly roles are able to "Update password for current user account". Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I38638f007dce3a4077e66e99a2e8b0dd3bc52637
2020-10-19Update relative path imports to use '@' aliasSurenNeware5-9/+9
- Add '@/' instead of '../../../' Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ida1dc26f2bd62f38914a74b729ee8fd143c360ac
2020-10-14Add consistent save button pattern to LDAPDixsie Wolmers1-1/+0
As a pattern, save buttons should not be disabled Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: If1d327db6d688d54e3068fb9807a49d401d57af0
2020-10-07Add updated table stylesSukanya Pandey4-1/+4
- Refer below link for styles: https://ibm.invisionapp.com/share/D8O06PPE32B#/screens Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I6dcc3b8d0fb7ef19388b5bfeaf87fce78725b638
2020-10-06Add stacked table style for small screenSurenNeware1-1/+1
- Add style to the stacked table type for small screen only. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I79fb44b20c8436df5734f89e60c98966c9c6a591
2020-09-24Add optional fields to LDAP and CSR formDixsie Wolmers2-40/+52
- Optional fields are indicated on the form field label - Asterisks indicating required were removed Verified with design. Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I998485f8928c2c976aa49790c19c9ac247d5ed24
2020-08-19Fix account settings double toast confirmationYoshie Muranaka1-2/+1
Removing extra ok handler for the account policy settings modal on local user management. Currently, saving changes in the modal will trigger two success toasts. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ic64529a1860f0b3b47fb87f5ea9d88b1c0d9ff45
2020-08-18Add form input field validation iconsDixsie Wolmers2-0/+3
Updates form validation to match updated style guide: - Datepicker and password toggle form field padding adjusted to accomodate validation icons - Valid form validation icon is hidden - Adds carbon icons and enables validation icons in IBM environment Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I7edff1e9527ad2c2cfec236daacb83ad4864d785
2020-08-18Add default or empty table stateSurenNeware3-1/+11
-Add appropriate empty text for the table. -Add common default empty state for all tables. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: If4beabc0b1450718095757bbb0803335ccf83ec5
2020-07-29Disable elements on page during loadingMateusz Gapski1-195/+197
Pages: Network settings, Date and time, LDAP, Manage power usage More details: https://github.com/openbmc/webui-vue/issues/15 Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I02c5aaff180a4ce445b7135403a169a8db3704da
2020-07-27Change file input languageMateusz Gapski1-1/+3
If my browser has Polish language then file input has Polish language too. However I would expect English language like whole app. More details: https://github.com/openbmc/webui-vue/issues/20 Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com> Change-Id: I20119fdd29686e1a4e6bed9ddd78a0e559afc694
2020-07-24Add test hooks to LDAP pageSurenNeware1-1/+13
Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: I50a7e84b27a1fd1c1211d708213c48537750d580
2020-07-24Add test hooks to SSL certificate pageSurenNeware2-1/+19
Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ieb04df80fedd98ed83297916f99d355cb241041f
2020-07-24Add table responsive layout and fix search icon visibilitySurenNeware4-14/+16
-Add responsive layout for all the tables. -Fix search icon visibility in search component. Signed-off-by: Suren Neware <sneware9@in.ibm.com> Change-Id: Ibb4f77cf322aeb3699b13ab6cbbdb6cc38efbdc4
2020-07-21Add test hooks to local user managementDixsie Wolmers3-8/+60
Adds test hooks to to all interactive elements: inputs, checkboxes, radio, selects, buttons Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: I7f3f6fbe968aeb23acf5a2ace7dbb3d4ed2aae77
2020-07-21Resolve import stack order error in build processDerick Montague1-1/+1
The import order for global components are throwing warnings during the build process. The build warnings suggested issues creating the correct order of the CSS chunk groups. Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I5979a8070d8003f6192b87ca1c2a2d136146cd4e
2020-06-26Fix errors on local user management add userYoshie Muranaka1-2/+2
Adding a new user on the local user page created two toasts, one success and one error. Fixed by removing duplicate @ok callback. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I52b2625480cd7705141d99ab55cf30b3073946df
2020-06-08Fix loader on local user management pageYoshie Muranaka1-3/+3
Loader for batch delete should start after confirming the action in the modal. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I5c4a4a5c0f98b51757f614423232cd6e08e90902
2020-05-12Add confirmation modal on local user tableYoshie Muranaka1-12/+33
Adds a delete confirmation modal when user attempting batch delete action from local user table. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I33f77cb55ceedad8a724a9d3f4b37d12c6d6687e
2020-05-12Add page loader on Local user management pageYoshie Muranaka1-11/+28
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ibb681f72bed33a6ca70d8e526668a2ab154111b4
2020-05-06Fix accessibility issue on local user pageYoshie Muranaka2-10/+27
Updates template to use form attribute on submit button to allow keyboard users to submit modal forms with the enter key. These updates were made to the local user add/edit modal and the account settings modal. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Id217cd68e4576ee099598591df6edbead0f1de8b
2020-05-06Fix generate CSR submitYoshie Muranaka1-1/+1
Add .prevent modifier to prevent native form submit in CSR modal which causes unwanted page refresh. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I3d56ed4797bc3829507873029d849a7a1ad03c99
2020-05-06Add loading bar to SSL certificates pageYoshie Muranaka1-8/+22
- Return new Date() instead of null when calculating expiring time. Expired certificates banner is sometimes visible if the certificates are returned before the bmc time Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I3a2b8ac8a639f464856472013be14878151e7289
2020-05-06Add loading bar to LDAP pageYoshie Muranaka2-9/+27
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I19f34986e05298a42f1739632a5786d03371e47c
2020-05-01Update local user button icon positionYoshie Muranaka1-3/+3
Move icon to left of button text to follow consistent patterns defined in style guide. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I56a9f4bb47fb28d6791ad1d9e0b986f3a8b5cbd4
2020-05-01Add LDAP role groups tableYoshie Muranaka3-42/+449
Adds ability to add, edit, and delete RemoteRoleMapping objects from the GUI. Role group table functionality includes sort, single row edit and delete, and batch delete. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Id9168c90b78a6f4090ab0ab3e37e74b8cd821d54
2020-04-25Add LDAP pageYoshie Muranaka2-0/+401
Adds ability to enable LDAP service and modify LDAP and ActiveDirectory properties. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I59d65bba7f6fe321af395227ce2f7188d9c006b7
2020-04-25Update layout fluid prop to set max-widthYoshie Muranaka2-5/+5
Setting page container fluid prop to 'xl' to allow fluid/100% container width until reaching the xl breakpoint. After reaching the xl breakpoint, a max-width is set to the container. This will make sure that the page content doesn't stretch into an unreasonable layout on wide viewports. https://bootstrap-vue.org/docs/components/layout#fluid-width-container Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ic50dd3b4339d532663279350afdcc30e59bb0c74
2020-04-22Fix local user edit bugYoshie Muranaka2-0/+2
When clicking the edit action in the local user table multiple times in a row, the form values do not populate. Setting the activeUser value to null whenever the modal is hidden will fix this issue–the value change will trigger the watch method in the modal and set form values. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I0b86b7e8b0454a69adf10fdd534a85a28d57b2a9
2020-04-21Add dynamic AccountService RolesYoshie Muranaka2-1/+4
Get roles on local user management privilege dropdown from /redfish/v1/AccountService/Roles instead of hard-coded values. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I00409b17fc1a2a49b880883749c0241e0aae283e
2020-04-09Add generate CSR to SSL certificates pageYoshie Muranaka3-2/+833
Adds ability to generate, then download or copy a CSR from the GUI - Import FormTagsPlugin to use for alternate names field Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I060e8d7917a79dafbfb67c758f5baa4a36ab86ae
2020-04-08Add SSL Certificate expiration warningsYoshie Muranaka1-0/+77
Adds status icons in data table and alert banners for expiring and expired certificates. Warning will be visible within 30 days of certificate expiration. Critical/danger indicators will be visible when certificate is expired. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I6f8c27d4ba1563a79b46eec7b869366ecee42f75