fix: command prompt navigation

This commit is contained in:
Xylight committed 2024-07-20 20:16:21 -07:00
1 parent bb5ca611dc
commit 04ebf5b3b6
2 files changed
+8 -4

No files matched your search

@@ -259,6 +259,10 @@
<CommandItem <CommandItem
{action} {action}
on:click={(e) => { on:click={(e) => {
if (action.href) {
togglePalette()
return
}
e.stopPropagation() e.stopPropagation()
handleSelect(action) handleSelect(action)
}} }}
@@ -136,17 +136,17 @@ export function getGroups(resumables: ResumableItem[], profile: Profile) {
{ {
name: t.get('filter.sort.top.time.9months'), name: t.get('filter.sort.top.time.9months'),
icon: ChartBar, icon: ChartBar,
href: '/?sort=Top9Months', href: '/?sort=TopNineMonths',
}, },
{ {
name: t.get('filter.sort.top.time.6months'), name: t.get('filter.sort.top.time.6months'),
icon: ChartBar, icon: ChartBar,
href: '/?sort=Top6Months', href: '/?sort=TopSixMonths',
}, },
{ {
name: t.get('filter.sort.top.time.3months'), name: t.get('filter.sort.top.time.3months'),
icon: ChartBar, icon: ChartBar,
href: '/?sort=Top3Months', href: '/?sort=TopThreeMonths',
}, },
{ {
name: t.get('filter.sort.top.time.month'), 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'), name: t.get('filter.sort.top.time.6hours'),
icon: ChartBar, icon: ChartBar,
href: '/?sort=Top6Hours', href: '/?sort=TopSixHours',
}, },
{ {
name: t.get('filter.sort.top.time.hour'), name: t.get('filter.sort.top.time.hour'),