Add readable labels to Google oauth fields
This commit is contained in:
parent
a9c3194eba
commit
ba45481cd7
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue