1
0
Fork 0
mirror of synced 2024-07-07 23:35:49 +12:00

Add readable labels to Google oauth fields

This commit is contained in:
Andrew Kingston 2021-05-21 13:46:13 +01:00
parent a9c3194eba
commit ba45481cd7

View file

@ -4,7 +4,6 @@
Button, Button,
Heading, Heading,
Divider, Divider,
Page,
Label, Label,
notifications, notifications,
Layout, Layout,
@ -23,6 +22,13 @@
const ConfigFields = { const ConfigFields = {
Google: ["clientID", "clientSecret", "callbackURL"], Google: ["clientID", "clientSecret", "callbackURL"],
} }
const ConfigLabels = {
Google: {
clientID: "Client ID",
clientSecret: "Client secret",
callbackURL: "Callback URL",
},
}
let google let google
@ -85,7 +91,7 @@
<Layout gap="XS" noPadding> <Layout gap="XS" noPadding>
{#each ConfigFields.Google as field} {#each ConfigFields.Google as field}
<div class="form-row"> <div class="form-row">
<Label size="L">{field}</Label> <Label size="L">{ConfigLabels.Google[field]}</Label>
<Input bind:value={google.config[field]} /> <Input bind:value={google.config[field]} />
</div> </div>
{/each} {/each}