diff --git a/frontend/src/components/WorkspaceChatWidget.vue b/frontend/src/components/WorkspaceChatWidget.vue index 618ab2f..59c1a86 100644 --- a/frontend/src/components/WorkspaceChatWidget.vue +++ b/frontend/src/components/WorkspaceChatWidget.vue @@ -49,7 +49,7 @@ watch( } ); -type WidgetState = 'closed' | 'collapsed' | 'expanded'; +type WidgetState = 'collapsed' | 'expanded'; const widgetState = ref('collapsed'); const chatPanelRef = ref | null>(null); @@ -89,7 +89,6 @@ function _storageKey(pid: number) { return `workspace_conv_${pid}`; } -function open() { widgetState.value = 'collapsed'; } function expand() { widgetState.value = 'expanded'; nextTick(() => chatPanelRef.value?.focus()); @@ -98,7 +97,6 @@ function collapse() { widgetState.value = 'collapsed'; nextTick(() => inputBarRef.value?.focus()); } -function close() { widgetState.value = 'closed'; } async function restart() { const conv = await chatStore.createConversation(); @@ -166,19 +164,8 @@ defineExpose({ prefill });