fix: Secrets build/runtime coudl be changed after save

This commit is contained in:
Andras Bacsai
2022-04-04 13:49:26 +02:00
parent 305fab488e
commit b023d65fcf
4 changed files with 72 additions and 20 deletions

View File

@@ -30,7 +30,7 @@
await Promise.all(
batchSecretsPairs.map(({ name, value, isNew }) =>
limit(() => saveSecret({ name, value, applicationId: id, isNew, dispatch }))
limit(() => saveSecret({ name, value, applicationId: id, isNew }))
)
);
batchSecrets = '';
@@ -39,8 +39,8 @@
</script>
<h2 class="title my-6 font-bold">Paste .env file</h2>
<form on:submit={getValues} class="mb-12 w-full">
<textarea value={batchSecrets} on:change={setBatchValue} class="mb-2 min-h-[200px] w-full" />
<form on:submit|preventDefault={getValues} class="mb-12 w-full">
<textarea bind:value={batchSecrets} class="mb-2 min-h-[200px] w-full" />
<button
class="bg-green-600 hover:bg-green-500 disabled:text-white disabled:opacity-40"
type="submit">Batch add secrets</button