clean when done
This commit is contained in:
parent
b80e0d15fb
commit
6309074844
@ -8,7 +8,7 @@
|
|||||||
import { createEventDispatcher } from 'svelte';
|
import { createEventDispatcher } from 'svelte';
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
let batchSecrets;
|
let batchSecrets = '';
|
||||||
function setBatchValue(event) {
|
function setBatchValue(event) {
|
||||||
batchSecrets = event.target?.value;
|
batchSecrets = event.target?.value;
|
||||||
}
|
}
|
||||||
@ -33,14 +33,14 @@
|
|||||||
limit(() => saveSecret({ name, value, applicationId: id, isNew, dispatch }))
|
limit(() => saveSecret({ name, value, applicationId: id, isNew, dispatch }))
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
batchSecrets = '';
|
||||||
refreshSecrets();
|
refreshSecrets();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h2 class="title my-6 font-bold">Paste .env file</h2>
|
<h2 class="title my-6 font-bold">Paste .env file</h2>
|
||||||
<form on:submit={getValues} class="mb-12 w-full">
|
<form on:submit={getValues} class="mb-12 w-full">
|
||||||
<textarea on:change={setBatchValue} class="mb-2 min-h-[200px] w-full" />
|
<textarea value={batchSecrets} on:change={setBatchValue} class="mb-2 min-h-[200px] w-full" />
|
||||||
<button
|
<button
|
||||||
class="bg-green-600 hover:bg-green-500 disabled:text-white disabled:opacity-40"
|
class="bg-green-600 hover:bg-green-500 disabled:text-white disabled:opacity-40"
|
||||||
type="submit">Batch add secrets</button
|
type="submit">Batch add secrets</button
|
||||||
|
Loading…
Reference in New Issue
Block a user