mirror of
https://github.com/open-webui/computer.git
synced 2026-11-20 21:41:54 +03:00
refac
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
interface MenuItem {
|
||||
label: string;
|
||||
title?: string;
|
||||
icon?: string;
|
||||
onclick: () => void;
|
||||
active?: boolean;
|
||||
@@ -374,6 +375,7 @@
|
||||
>
|
||||
<button
|
||||
class="flex items-center gap-2 min-w-0 flex-1 h-full px-2 text-inherit"
|
||||
title={item.title}
|
||||
onclick={() => {
|
||||
item.onclick();
|
||||
onclose();
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
const menuItems = $derived(
|
||||
filtered.map((m) => ({
|
||||
label: m.name,
|
||||
title: m.name,
|
||||
active: m.id === selectedModel,
|
||||
check: true,
|
||||
onclick: () => {
|
||||
|
||||
Reference in New Issue
Block a user