Fix create - render - destroy lifecycle for gitlab experiment
What does this MR do and why?
Our Ultimate Trial Status widget is oscillating between displaying 1 and 2 CTAs. It should display 2 at all times.
Solution
Our <gitlab-experiment>
tag relies on $slots
. And after first appearance $slots
are empty until page is refreshed. Replaced with $scopedSlots
.
Screenshots or screen recordings
Screen_Recording_2022-02-08_at_11.44.08
How to set up and validate locally
- Login as an active trial user or login as regular user and go to
/-/trials/new
to activate trial. - Go to any group or create new one. Hover over the Ultimate trial status widget at the top of the left hand side nav.
- Both CTAs (Upgrade to Ultimate and Compare All Plans) will appear.
- Take your cursor elsewhere, the widget will close. Leave for 10-15 seconds
- Revisit the widget and still 2 CTA should appear.
Related to #352189 (closed)
Edited by Serhii Yarynovskyi