Resolve "Maintenance mode status can not be changed"
What does this MR do and why?
This MR fixes the problem when updating the maintenance mode banner message on the admin page. The data
received from the .haml file can't be passed as a boolean data type. Casting the boolean to a string and parsing it again to a boolean on the client side fixes this issue.
Screenshots or screen recordings
Before
After
How to set up and validate locally
- Enable maintenance mode with the banner message
- Refresh the page
- Try to change the banner message again (it should not show any error message)
- Refresh the page again
- The page should show the banner with the new banner message
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #432367 (closed)
Edited by Javiera Tapia