Add readable labels to Google oauth fields
This commit is contained in:
parent
bc9e272978
commit
064c7a3124
|
@ -4,7 +4,6 @@
|
|||
Button,
|
||||
Heading,
|
||||
Divider,
|
||||
Page,
|
||||
Label,
|
||||
notifications,
|
||||
Layout,
|
||||
|
@ -23,6 +22,13 @@
|
|||
const ConfigFields = {
|
||||
Google: ["clientID", "clientSecret", "callbackURL"],
|
||||
}
|
||||
const ConfigLabels = {
|
||||
Google: {
|
||||
clientID: "Client ID",
|
||||
clientSecret: "Client secret",
|
||||
callbackURL: "Callback URL",
|
||||
},
|
||||
}
|
||||
|
||||
let google
|
||||
|
||||
|
@ -85,7 +91,7 @@
|
|||
<Layout gap="XS" noPadding>
|
||||
{#each ConfigFields.Google as field}
|
||||
<div class="form-row">
|
||||
<Label size="L">{field}</Label>
|
||||
<Label size="L">{ConfigLabels.Google[field]}</Label>
|
||||
<Input bind:value={google.config[field]} />
|
||||
</div>
|
||||
{/each}
|
||||
|
|
Loading…
Reference in New Issue