fix: dark oidc client icons not saved on client creation (#1057)

This commit is contained in:
Mufeed Ali
2025-10-28 17:05:56 +05:30
committed by GitHub
parent a190529117
commit 93639dddb2
3 changed files with 15 additions and 6 deletions

View File

@@ -21,9 +21,15 @@
async function createOIDCClient(client: OidcClientCreateWithLogo) {
try {
const createdClient = await oidcService.createClient(client);
if (client.logo) {
await oidcService.updateClientLogo(createdClient, client.logo);
}
const logoPromise = client.logo
? oidcService.updateClientLogo(createdClient, client.logo, true)
: Promise.resolve();
const darkLogoPromise = client.darkLogo
? oidcService.updateClientLogo(createdClient, client.darkLogo, false)
: Promise.resolve();
await Promise.all([logoPromise, darkLogoPromise]);
const clientSecret = await oidcService.createClientSecret(createdClient.id);
clientSecretStore.set(clientSecret);
goto(`/settings/admin/oidc-clients/${createdClient.id}`);

View File

@@ -113,5 +113,5 @@
</Card.Root>
</div>
<SignupTokenModal bind:open={signupTokenModalOpen} />
<SignupTokenModal bind:open={signupTokenModalOpen} />
<SignupTokenListModal bind:open={signupTokenListModalOpen} />