fix: typo, add lang to placeholder

This commit is contained in:
Arman committed 2022-11-11 09:20:48 +01:00
1 parent a6fb979841
commit f5cf015943
2 files changed
+4 -3

No files matched your search

@@ -21,13 +21,14 @@
let entrypoint: string;
let active: boolean;
let files: FileList;
let lang = 'js';
let codeSnippets = {};
const functionId = $page.params.function;
const dispatch = createEventDispatcher();
onMount(() => {
const lang = setLanguage($func.runtime);
lang = setLanguage($func.runtime);
codeSnippets = setCodeSnippets(lang);
});
@@ -159,7 +160,7 @@
<FormList>
<InputText
label="Entrypoint"
placeholder="main.py"
placeholder={`main.${lang}`}
id="entrypoint"
bind:value={entrypoint}
required />
@@ -78,7 +78,7 @@
</script>
<div class="u-flex u-cross-center u-main-end">
<Button text on:click={deselectAll}>deselect all</Button>
<Button text on:click={deselectAll}>Deselect all</Button>
<Button text on:click={selectAll}>Select all</Button>
</div>
<Collapsible>