File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 < h2 > Options</ h2 >
1818 < select id ="environment ">
1919 < option value ="custom "> </ option >
20- < option value ="prod "> Prod</ option >
21- < option value ="prod-preview "> Prod (preview)</ option >
20+ < option class =" prod " value ="prod "> Prod</ option >
21+ < option class =" prod " value ="prod-preview "> Prod (preview)</ option >
2222 < option value ="stage "> Stage</ option >
2323 < option value ="stage-preview "> Stage (preview)</ option >
2424 < option value ="dev "> Dev</ option >
Original file line number Diff line number Diff line change @@ -79,7 +79,10 @@ async function refreshUI(state) {
7979 document . getElementById ( "environment-error" ) . style . display =
8080 serverSettingIgnored ? "block" : "none" ;
8181 if ( serverSettingIgnored ) {
82- environmentElt . setAttribute ( "disabled" , "disabled" ) ;
82+ // Disable all options except those related to prod
83+ environmentElt
84+ . querySelectorAll ( "option:not(.prod)" )
85+ . forEach ( ( optionElt ) => optionElt . setAttribute ( "disabled" , "disabled" ) ) ;
8386 }
8487
8588 document . getElementById ( "polling-url" ) . textContent = new URL (
You can’t perform that action at this time.
0 commit comments