Show message when project does not contain cloud variables

This commit is contained in:
Thomas Weber committed 2021-12-11 22:16:58 -06:00
1 parent 26c8e4b50c
commit 5d84898691
2 files changed
+21 -14

No files matched your search

+4
View File
@@ -268,6 +268,10 @@
"string": "Cloud Variables",
"context": "Cloud variables section header"
},
"noCloudVariables": {
"string": "This project does not contain cloud variables.",
"context": "Message that appears when the project contain no cloud variables."
},
"mode": {
"string": "Mode",
"context": "Label to choose how to handle cloud variables"
+17 -14
View File
@@ -455,17 +455,18 @@
</div>
</Section>
{#if cloudVariables.length > 0}
<Section
accent="#FF8C1A"
reset={() => {
resetOptions([
'cloudVariables'
]);
}}
>
<div>
<h2>{$_('options.cloudVariables')}</h2>
<Section
accent="#FF8C1A"
reset={() => {
resetOptions([
'cloudVariables'
]);
}}
>
<div>
<h2>{$_('options.cloudVariables')}</h2>
{#if cloudVariables.length > 0}
<label class="option">
{$_('options.mode')}
<select bind:value={$options.cloudVariables.mode}>
@@ -510,9 +511,11 @@
</label>
<LearnMore slug="packager/special-cloud-behaviors" />
</div>
</div>
</Section>
{/if}
{:else}
<p>{$_('options.noCloudVariables')}</p>
{/if}
</div>
</Section>
<Section
accent="#FF6680"