Why you have changed the order of the toolbar button on the browser tree? It should not.
Changes were related to the wcDocker issue showing reverse order buttons, so had to change in the pgAdmin app to reflect it correctly.
sqleditor.js (check_db_name_change function)
var declaration should be comma-separated instead of writing var, again and again.
Done.
Add proper comments.
This too is taken care of.
Remove dots from the string "Database moved/renamed.."
Done.
"Please note that the database you are working on has been moved or renamed to ${data.actual_db_name}. Refresh databases in browser panel or click OK to continue.." should be changed to "Current database has been moved or renamed to ${data.actual_db_name}. Click on the OK button to refresh the database name."