mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-08-31 03:07:23 +00:00
feat: display icon and command title as extension default
This commit is contained in:
parent
b2bf4bc1a3
commit
ca7c920567
1 changed files with 5 additions and 1 deletions
|
@ -27,7 +27,10 @@
|
|||
const selectedItemNode = $derived(uiTree.get(selectedNodeId!));
|
||||
let searchText = $state('');
|
||||
let searchInputEl: HTMLInputElement | null = $state(null);
|
||||
const navigationTitle = $derived(rootNode?.props.navigationTitle as string | undefined);
|
||||
const icon = $derived(currentRunningPlugin?.icon);
|
||||
const navigationTitle = $derived(
|
||||
(rootNode?.props.navigationTitle as string | undefined) ?? currentRunningPlugin?.title
|
||||
);
|
||||
const toastToShow = $derived(Array.from(toasts.entries()).sort((a, b) => b[0] - a[0])[0]?.[1]);
|
||||
const formValues = new SvelteMap<string, unknown>();
|
||||
|
||||
|
@ -119,6 +122,7 @@
|
|||
{#snippet footer()}
|
||||
<ActionBar
|
||||
actions={allActions.map((node) => nodeToActionDefinition(node, handleDispatch))}
|
||||
{icon}
|
||||
title={navigationTitle}
|
||||
toast={toastToShow}
|
||||
{onToastAction}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue