1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-15 16:55:05 +00:00

feat: add email logo customization (#1150)

This commit is contained in:
Melvin Snijders
2025-12-17 16:20:22 +01:00
committed by GitHub
parent 3eaf36aae7
commit f5da11b99b
14 changed files with 131 additions and 29 deletions

View File

@@ -42,6 +42,7 @@
async function updateImages(
logoLight: File | undefined,
logoDark: File | undefined,
logoEmail: File | undefined,
defaultProfilePicture: File | null | undefined,
backgroundImage: File | undefined,
favicon: File | undefined
@@ -56,6 +57,10 @@
? appConfigService.updateLogo(logoDark, false)
: Promise.resolve();
const emailLogoPromise = logoEmail
? appConfigService.updateEmailLogo(logoEmail)
: Promise.resolve();
const defaultProfilePicturePromise =
defaultProfilePicture === null
? appConfigService.deleteDefaultProfilePicture()
@@ -70,6 +75,7 @@
await Promise.all([
lightLogoPromise,
darkLogoPromise,
emailLogoPromise,
defaultProfilePicturePromise,
backgroundImagePromise,
faviconPromise