File tree Expand file tree Collapse file tree
src/components/tw-cloud-variable-badge Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,14 +10,6 @@ const hosts = [
1010 {
1111 name : 'US East' ,
1212 cloudHost : 'wss://clouddata.turbowarp.org'
13- } ,
14- {
15- name : 'EU' ,
16- cloudHost : 'wss://clouddata-eu.turbowarp.org' ,
17- provider : {
18- name : '9gr' ,
19- href : 'https://scratch.mit.edu/users/9gr/'
20- }
2113 }
2214] ;
2315
@@ -63,7 +55,7 @@ const CloudVariableBadge = props => {
6355 } }
6456 />
6557
66- { selectedHost ? (
58+ { selectedHost && hosts . length > 1 ? (
6759 < div className = { styles . servers } >
6860 < FormattedMessage
6961 defaultMessage = "Pick a server near you:"
@@ -80,6 +72,9 @@ const CloudVariableBadge = props => {
8072 />
8173 ) ) }
8274 </ div >
75+ ) : selectedHost ? (
76+ // No options, so don't render anything
77+ null
8378 ) : (
8479 < FormattedMessage
8580 defaultMessage = "Using a custom cloud variable server: {server}"
You can’t perform that action at this time.
0 commit comments