feat: add Google Maps integration with description and display status in settings

This commit is contained in:
Sean Morley
2025-06-01 23:09:48 -04:00
parent 0838a41156
commit 937db00226
4 changed files with 49 additions and 3 deletions

View File

@@ -70,6 +70,17 @@ export const load: PageServerLoad = async (event) => {
});
let socialProviders = await socialProvidersFetch.json();
let integrationsFetch = await fetch(`${endpoint}/api/integrations/`, {
headers: {
Cookie: `sessionid=${sessionId}`
}
});
if (!integrationsFetch.ok) {
return redirect(302, '/');
}
let integrations = await integrationsFetch.json();
let googleMapsEnabled = integrations.google_maps as boolean;
let publicUrlFetch = await fetch(`${endpoint}/public-url/`);
let publicUrl = '';
if (!publicUrlFetch.ok) {
@@ -86,7 +97,8 @@ export const load: PageServerLoad = async (event) => {
authenticators,
immichIntegration,
publicUrl,
socialProviders
socialProviders,
googleMapsEnabled
}
};
};