feat(web): re-add version announcement (#1887)

* feat(web): re-add version announcement

* show notification for every update
This commit is contained in:
Michel Heusschen
2023-02-28 00:13:39 +01:00
committed by GitHub
parent c9a6820de7
commit 243c98a02e
6 changed files with 112 additions and 116 deletions

View File

@@ -1,5 +1,7 @@
import type { LayoutServerLoad } from './$types';
export const load = (async ({ locals: { user } }) => {
return { user };
export const load = (async ({ locals: { api, user } }) => {
const { data: serverVersion } = await api.serverInfoApi.getServerVersion();
return { serverVersion, user };
}) satisfies LayoutServerLoad;