mirror of
https://github.com/open-webui/computer.git
synced 2026-11-26 15:21:01 -05:00
refac
This commit is contained in:
1 parent
fe70685d68
commit
64f90bd1b7
1 file changed
+8
-2
@@ -929,8 +929,14 @@
|
||||
if (oncompact && '/compact'.startsWith(slashCommandQuery)) ids.push('compact');
|
||||
if (onplan && '/plan'.startsWith(slashCommandQuery)) ids.push('plan');
|
||||
if (onstatus && '/status'.startsWith(slashCommandQuery)) ids.push('status');
|
||||
if (onskillslist && '/skills:list'.startsWith(slashCommandQuery)) ids.push('skills:list');
|
||||
if ('/skills:create'.startsWith(slashCommandQuery)) ids.push('skills:create');
|
||||
if (
|
||||
onskillslist &&
|
||||
slashCommandQuery !== '/skills:list' &&
|
||||
'/skills:list'.startsWith(slashCommandQuery)
|
||||
)
|
||||
ids.push('skills:list');
|
||||
if (slashCommandQuery !== '/skills:create' && '/skills:create'.startsWith(slashCommandQuery))
|
||||
ids.push('skills:create');
|
||||
return ids;
|
||||
});
|
||||
const showSlashCommands = $derived(slashCommandIds.length > 0);
|
||||
|
||||
Reference in new issue
Block a user