[UI] Improve Portal Disconnect UX

Description

Use the UserStatus API to show different text for the disconnect button:

  • users logged in with admin-admin credentials should see something like "Force Disconnect"

  • users logged in with Percona accounts should see the usual "Disconnect"

 

Force Disconnect should now return a 200 OK upon successfull completion instead of 400, the UI should change the code accordingly and expect a 200 ok in case of successful force disconnect.

 

Contact   for any clarifications regarding this change.

How to test

This is the FE subtask of PMM-11182   

  • users logged in with admin-admin credentials should see "Force Disconnect"

  • users logged in with Percona accounts should see the usual "Disconnect"

 

FB  https://github.com/Percona-Lab/pmm-submodules/pull/3014

How to document

None

Activity

Show:
Done

Details

Assignee

Reporter

Priority

Needs QA

Yes

Needs Doc

No

Fix versions

Story Points

Smart Checklist

Created December 8, 2022 at 11:32 AM
Updated March 6, 2024 at 12:18 AM
Resolved February 27, 2023 at 1:13 PM

Flag notifications