update
This commit is contained in:
@@ -286,12 +286,24 @@ const sidebarProps = computed(() => (paneName: PaneName | null) => {
|
|||||||
} else {
|
} else {
|
||||||
return baseProps; // Return only base props if no active session
|
return baseProps; // Return only base props if no active session
|
||||||
}
|
}
|
||||||
// Add cases for other components if they need specific props or event forwarding in the sidebar
|
case 'statusMonitor':
|
||||||
// case 'commandHistory': return { ...baseProps, onExecuteCommand: (cmd: string) => emit('sendCommand', cmd) };
|
// Only provide props if there's an active session
|
||||||
// case 'quickCommands': return { ...baseProps, onExecuteCommand: (cmd: string) => emit('sendCommand', cmd) };
|
if (activeSession.value) {
|
||||||
default:
|
return {
|
||||||
return baseProps; // Return only base props for other components
|
...baseProps,
|
||||||
}
|
sessionId: activeSession.value.sessionId, // Pass session ID
|
||||||
|
serverStatus: activeSession.value.statusMonitorManager.serverStatus.value,
|
||||||
|
statusError: activeSession.value.statusMonitorManager.statusError.value,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
return baseProps; // Return only base props if no active session
|
||||||
|
}
|
||||||
|
// Add cases for other components if they need specific props or event forwarding in the sidebar
|
||||||
|
// case 'commandHistory': return { ...baseProps, onExecuteCommand: (cmd: string) => emit('sendCommand', cmd) };
|
||||||
|
// case 'quickCommands': return { ...baseProps, onExecuteCommand: (cmd: string) => emit('sendCommand', cmd) };
|
||||||
|
default:
|
||||||
|
return baseProps; // Return only base props for other components
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user