Show warning when custom username and cloud variables are used at the same time

This commit is contained in:
Thomas Weber committed 2022-02-12 20:51:29 -06:00
1 parent ad39e410e1
commit 52af084cd6
2 files changed
+9

No files matched your search

+4
View File
@@ -157,6 +157,10 @@
"username": {
"string": "Username (each \"#\" gets replaced with a random number)"
},
"customUsernameWarning": {
"string": "Be careful when changing the default username as it can cause connections to the default cloud variable server to be blocked. Only the default username is guaranteed to work.",
"context": "Warning that appears when using custom username and cloud variables at the same time."
},
"autoplay": {
"string": "Start project automatically instead of showing a big green flag"
},
+5
View File
@@ -295,6 +295,11 @@
{$_('options.username')}
<input type="text" class="shorter" bind:value={$options.username}>
</label>
{#if $options.username !== defaultOptions.username && cloudVariables.length !== 0}
<p class="warning">
{$_('options.customUsernameWarning')}
</p>
{/if}
<h3>{$_('options.stage')}</h3>
<label class="option">