aboutsummaryrefslogtreecommitdiff
path: root/src/lib/CommandPalette/CommandPalette.svelte
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-05-15 03:21:48 -0700
committerFuwn <[email protected]>2025-05-15 03:21:48 -0700
commitd2971dad8292f36fca0599aeaaae11e27510c20d (patch)
tree86f96847cad96f291bda5cc35e79bdd33598b889 /src/lib/CommandPalette/CommandPalette.svelte
parentfeat(CommandPalette): Enhanced nested visual indicators (diff)
downloaddue.moe-d2971dad8292f36fca0599aeaaae11e27510c20d.tar.xz
due.moe-d2971dad8292f36fca0599aeaaae11e27510c20d.zip
feat(CommandPalette): Add additional nested actions
Diffstat (limited to 'src/lib/CommandPalette/CommandPalette.svelte')
-rw-r--r--src/lib/CommandPalette/CommandPalette.svelte3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/CommandPalette/CommandPalette.svelte b/src/lib/CommandPalette/CommandPalette.svelte
index f493bcac..6dda7f8f 100644
--- a/src/lib/CommandPalette/CommandPalette.svelte
+++ b/src/lib/CommandPalette/CommandPalette.svelte
@@ -38,13 +38,12 @@
if (action.actions)
action.actions.forEach((nestedAction, nestedIdx) => {
- if (doesActionMatch(nestedAction)) {
+ if (doesActionMatch(nestedAction))
filtered.push({
...nestedAction,
id: `action-${idx}-nested-${nestedIdx}`,
name: `${matchedParent ? '↳' : `${action.name} >`} ${nestedAction.name}`
});
- }
});
});
}