Last admin warning dialog not showing when changing role in room settings #28547
Labels
A-Room-Settings
O-Occasional
Affects or can be seen by some users regularly or most users rarely
S-Minor
Impairs non-critical functionality or suitable workarounds exist
T-Enhancement
Your use case
What would you like to do?
We have a last admin dialog warning showing when changing the role on the right panel menu of the room. but we don"t have this behavior when changing on the setting screen of the room.
I would like to also add this warning when changing members roles on this screen.
Why would you like to do it?
Not having a warning confirmation modal here can lead to irreversible consequences for the user. Since we already have this behavior on one part of the application, it can be beneficial to apply it everywhere.
How would you like to achieve it?
Using the same code in
UserInfo.tsx,
we have the dialogwarnSelfDemote,
but managing to also do the check inRolesRoomSettingsTab.tsx
whenonUserPowerLevelChanged
is changing.Have you considered any alternatives?
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: