Invert logos config naming to prevent conflict
This commit is contained in:
parent
d97914837e
commit
3152bd1839
|
@ -21,5 +21,5 @@ exports.Configs = {
|
|||
SMTP: "smtp",
|
||||
GOOGLE: "google",
|
||||
OIDC: "oidc",
|
||||
OIDC_LOGOS: "oidc_logos",
|
||||
OIDC_LOGOS: "logos_oidc",
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
$: show = $admin.checklist?.oidc
|
||||
$: src = !$oidc.logo
|
||||
? OidcLogo
|
||||
: preDefinedIcons[$oidc.logo] || `/global/oidc_logos/${$oidc.logo}`
|
||||
: preDefinedIcons[$oidc.logo] || `/global/logos_oidc/${$oidc.logo}`
|
||||
</script>
|
||||
|
||||
{#if show}
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
let data = new FormData()
|
||||
data.append("file", file)
|
||||
const res = await api.post(
|
||||
`/api/admin/configs/upload/oidc_logos/${file.name}`,
|
||||
`/api/admin/configs/upload/logos_oidc/${file.name}`,
|
||||
data,
|
||||
{}
|
||||
)
|
||||
|
@ -153,7 +153,7 @@
|
|||
|
||||
//Get the list of user uploaded logos and push it to the dropdown options.
|
||||
//This needs to be done before the config call so they're available when the dropdown renders
|
||||
const res = await api.get(`/api/admin/configs/oidc_logos`)
|
||||
const res = await api.get(`/api/admin/configs/logos_oidc`)
|
||||
const configSettings = await res.json()
|
||||
|
||||
if (configSettings.config) {
|
||||
|
|
Loading…
Reference in New Issue