From 04ebf5b3b6d96a29df78ffbda75cdf2c409ee742 Mon Sep 17 00:00:00 2001 From: Xylight Date: Sat, 20 Jul 2024 20:16:21 -0700 Subject: [PATCH] fix: command prompt navigation --- src/lib/components/ui/navbar/commands/Commands.svelte | 4 ++++ src/lib/components/ui/navbar/commands/actions.ts | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/lib/components/ui/navbar/commands/Commands.svelte b/src/lib/components/ui/navbar/commands/Commands.svelte index c9a233f5..fb0d8a7d 100644 --- a/src/lib/components/ui/navbar/commands/Commands.svelte +++ b/src/lib/components/ui/navbar/commands/Commands.svelte @@ -259,6 +259,10 @@ { + if (action.href) { + togglePalette() + return + } e.stopPropagation() handleSelect(action) }} diff --git a/src/lib/components/ui/navbar/commands/actions.ts b/src/lib/components/ui/navbar/commands/actions.ts index 28c6824e..d690661f 100644 --- a/src/lib/components/ui/navbar/commands/actions.ts +++ b/src/lib/components/ui/navbar/commands/actions.ts @@ -136,17 +136,17 @@ export function getGroups(resumables: ResumableItem[], profile: Profile) { { name: t.get('filter.sort.top.time.9months'), icon: ChartBar, - href: '/?sort=Top9Months', + href: '/?sort=TopNineMonths', }, { name: t.get('filter.sort.top.time.6months'), icon: ChartBar, - href: '/?sort=Top6Months', + href: '/?sort=TopSixMonths', }, { name: t.get('filter.sort.top.time.3months'), icon: ChartBar, - href: '/?sort=Top3Months', + href: '/?sort=TopThreeMonths', }, { name: t.get('filter.sort.top.time.month'), @@ -166,7 +166,7 @@ export function getGroups(resumables: ResumableItem[], profile: Profile) { { name: t.get('filter.sort.top.time.6hours'), icon: ChartBar, - href: '/?sort=Top6Hours', + href: '/?sort=TopSixHours', }, { name: t.get('filter.sort.top.time.hour'),