View Script button text and icon on Cluster Configuration tab have different behaviours
Summary
When trying to view the Managed SQL Script within the SGCluster Configuration tab, the button text (View Script
) and the eye icon behave in different ways:
-
View Script
opens a pop-up containing the Script. - The eye icon opens a pop-up containing the text
undefined
.
Note: Although this issue was spotted on the View Script
button, we need to make sure it does not happen on other buttons as well.
Steps to reproduce
- Create a Cluser.
- Go to the Configuration tab. Scroll to Managed SQL section and click on
View Entries
. A pop-up with the Script Entries will appear. - Click on the
View Script
text. A pop-up containing the Script will appear. - Close the Script pop-up and click on the eye icon next to the
View Script
text. A pop-up with the textundefined
will appear.
Expected Behaviour
Both the text and the eye icon of the button should behave in the same way and open the Script pop-up.
Environment
- StackGres version: 1.4.0