mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
feat(editor): Hover actions on the logs overview (#14386)
This commit is contained in:
@@ -101,7 +101,6 @@ import { useUniqueNodeName } from '@/composables/useUniqueNodeName';
|
||||
import { isPresent } from '../utils/typesUtils';
|
||||
import { useProjectsStore } from '@/stores/projects.store';
|
||||
import type { CanvasLayoutEvent } from './useCanvasLayout';
|
||||
import { LOGS_PANEL_STATE } from '@/components/CanvasChat/types/logs';
|
||||
|
||||
type AddNodeData = Partial<INodeUi> & {
|
||||
type: string;
|
||||
@@ -1974,14 +1973,10 @@ export function useCanvasOperations({ router }: { router: ReturnType<typeof useR
|
||||
return data;
|
||||
}
|
||||
|
||||
async function toggleChatOpen(source: 'node' | 'main') {
|
||||
async function toggleChatOpen(source: 'node' | 'main', isOpen?: boolean) {
|
||||
const workflow = workflowsStore.getCurrentWorkflow();
|
||||
|
||||
workflowsStore.setPanelState(
|
||||
workflowsStore.chatPanelState === LOGS_PANEL_STATE.CLOSED
|
||||
? LOGS_PANEL_STATE.ATTACHED
|
||||
: LOGS_PANEL_STATE.CLOSED,
|
||||
);
|
||||
workflowsStore.toggleLogsPanelOpen(isOpen);
|
||||
|
||||
const payload = {
|
||||
workflow_id: workflow.id,
|
||||
|
||||
Reference in New Issue
Block a user