mirror of
https://github.com/nikdoof/pocket-id.git
synced 2025-12-23 14:29:23 +00:00
feat: add version information to footer and update link if new update is available
This commit is contained in:
11
frontend/src/routes/settings/+layout.ts
Normal file
11
frontend/src/routes/settings/+layout.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import AppConfigService from '$lib/services/app-config-service';
|
||||
import type { LayoutLoad } from './$types';
|
||||
|
||||
export const load: LayoutLoad = async () => {
|
||||
const appConfigService = new AppConfigService();
|
||||
|
||||
const versionInformation = await appConfigService.getVersionInformation();
|
||||
return {
|
||||
versionInformation
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user