org branding

This commit is contained in:
peintnermax
2024-04-01 10:00:31 +02:00
parent ddc33d2b9e
commit 8f836557c3
7 changed files with 175 additions and 158 deletions

View File

@@ -55,11 +55,15 @@ if (!getServers().length) {
}
export async function getBrandingSettings(
server: ZitadelServer
server: ZitadelServer,
organization?: string
): Promise<BrandingSettings | undefined> {
const settingsService = settings.getSettings(server);
return settingsService
.getBrandingSettings({}, {})
.getBrandingSettings(
{ ctx: organization ? { orgId: organization } : { instance: true } },
{}
)
.then((resp: GetBrandingSettingsResponse) => resp.settings);
}