diff --git a/src/routes/VerticalLayout/Index.svelte b/src/routes/VerticalLayout/Index.svelte index d646b390..73c7ef66 100644 --- a/src/routes/VerticalLayout/Index.svelte +++ b/src/routes/VerticalLayout/Index.svelte @@ -5,6 +5,10 @@ import { browser } from '$app/environment'; import Footer from './Footer.svelte'; import { onMount } from 'svelte'; + import { getPluginMenu } from '$lib/services/plugin-service'; + + /** @type {import('$types').PluginMenuDefModel[]} */ + let menu; const toggleRightBar = () => { if (browser) { @@ -20,7 +24,8 @@ toggleRightBar(); }; - onMount(() => { + onMount(async () => { + menu = await getPluginMenu(); if (browser) { document.body.setAttribute('data-layout', 'vertical'); } @@ -29,8 +34,9 @@