Keep archive settings button on loading state after archiving

What does this MR do and why?

Keeps the archive button in a loading state after successfully archiving a group or project -- until it redirects to the next page.

Previously, the button returns to the normal state afterwards. There is a small window where you can re-click the button before the page redirects.

References

Related to #569365 (closed)

Screenshots or screen recordings

Before After

Screen_Recording_2025-09-11_at_4.16.47_PM

Note: Notice how I was able to click the archive button a second time

Screen_Recording_2025-09-11_at_4.22.06_PM

How to set up and validate locally

  1. Enable archive_group feature flag
  2. Go to Group/Project > Settings > General > Advanced > Archive

Notice that the button will stay on the loading state until it redirects.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Shane Maglangit

Merge request reports

Loading