aboutsummaryrefslogtreecommitdiff
path: root/src/routes/+layout.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/+layout.svelte')
-rw-r--r--src/routes/+layout.svelte13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 39a2e40b..78e08016 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -32,6 +32,9 @@ import { requestNotifications } from "$lib/Utility/notifications";
import { database as userDatabase } from "$lib/Database/IDB/user";
import CommandPalette from "$lib/CommandPalette/CommandPalette.svelte";
import { defaultActions } from "$lib/CommandPalette/actions";
+import { authActions } from "$lib/CommandPalette/authActions";
+import { syncActions } from "$lib/CommandPalette/syncActions";
+import { toggleActions } from "$lib/CommandPalette/toggleActions";
import { toolsAsCommandPaletteActions } from "$lib/Tools/tools";
import localforage from "localforage";
import { dev } from "$app/environment";
@@ -197,7 +200,15 @@ $: {
<HeadTitle />
-<CommandPalette items={defaultActions.concat(toolsAsCommandPaletteActions())} />
+<CommandPalette
+ items={[
+ ...defaultActions,
+ ...toolsAsCommandPaletteActions(),
+ ...authActions(data.user),
+ ...syncActions($userIdentity.id, $settings.settingsSync),
+ ...toggleActions($settings)
+ ]}
+/>
{#if !$locales.includes('en') || !$locale().navigation}
<Message />