Invert logos config naming to prevent conflict

This commit is contained in:
Rory Powell 2021-07-14 15:48:29 +01:00
parent d97914837e
commit 3152bd1839
3 changed files with 4 additions and 4 deletions

View File

@ -21,5 +21,5 @@ exports.Configs = {
SMTP: "smtp",
GOOGLE: "google",
OIDC: "oidc",
OIDC_LOGOS: "oidc_logos",
OIDC_LOGOS: "logos_oidc",
}

View File

@ -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}

View File

@ -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) {