diff options
| author | Fuwn <[email protected]> | 2025-05-15 03:21:48 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-05-15 03:21:48 -0700 |
| commit | d2971dad8292f36fca0599aeaaae11e27510c20d (patch) | |
| tree | 86f96847cad96f291bda5cc35e79bdd33598b889 /src/lib/CommandPalette/CommandPalette.svelte | |
| parent | feat(CommandPalette): Enhanced nested visual indicators (diff) | |
| download | due.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.svelte | 3 |
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}` }); - } }); }); } |