Skip to content

Maintain Scroll Position when Environment has been Protected.

Problem

In the Protected Environments settings when a user hits the protect CTA, the page will jump back to the top.

untitled

Additionally this came up in a recent MR:

The following discussion from !121934 (merged) should be addressed:

I have two suggestions that are out of the scope of this MR. Let me know if you want me to create follow-up issues.

  • (non-blocking) suggestion: I think this is also not part of the scope of the MR, so I made it a non-blocking suggestion.

    environment-protected-settings

I created a video - when I'm adding a protected environment by clicking the button, the protected environment section collapsed so I needed to find the menu and expand it again. I think it would be nice to see the section expanded after clicking the button.

Solution

  • Retain scroll position so users can see their environment has been protected.
  • Optional: Provide feedback that the environment has been protected.

From: !98699 (comment 1118383812)

Edited by Emily Bauman