mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 01:26:33 +08:00
fix: download graph logs
This commit is contained in:
parent
10193179cf
commit
f45c09ba69
@ -113,14 +113,6 @@ const Header = () => {
|
|||||||
{!isCurrentWorkspaceDatasetOperator && <ToolsNav className={navClassName} />}
|
{!isCurrentWorkspaceDatasetOperator && <ToolsNav className={navClassName} />}
|
||||||
</div>
|
</div>
|
||||||
<div className="flex min-w-0 flex-1 items-center justify-end pr-3 pl-2 min-[1280px]:pl-3">
|
<div className="flex min-w-0 flex-1 items-center justify-end pr-3 pl-2 min-[1280px]:pl-3">
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
data-testid="workflow-import-log-download"
|
|
||||||
className="top-1/2 left-full ml-1 h-3 w-3 -translate-y-1/2 opacity-0"
|
|
||||||
aria-hidden="true"
|
|
||||||
tabIndex={-1}
|
|
||||||
onClick={handleDownloadGraphImportLog}
|
|
||||||
/>
|
|
||||||
<EnvNav />
|
<EnvNav />
|
||||||
<div className="mr-2">
|
<div className="mr-2">
|
||||||
<PluginsNav />
|
<PluginsNav />
|
||||||
|
|||||||
@ -118,6 +118,7 @@ export class CollaborationManager {
|
|||||||
private reactFlowStore: ReactFlowStore | null = null
|
private reactFlowStore: ReactFlowStore | null = null
|
||||||
private isLeader = false
|
private isLeader = false
|
||||||
private leaderId: string | null = null
|
private leaderId: string | null = null
|
||||||
|
private onlineUsers: OnlineUser[] = []
|
||||||
private cursors: Record<string, CursorPosition> = {}
|
private cursors: Record<string, CursorPosition> = {}
|
||||||
private nodePanelPresence: NodePanelPresenceMap = {}
|
private nodePanelPresence: NodePanelPresenceMap = {}
|
||||||
private activeConnections = new Set<string>()
|
private activeConnections = new Set<string>()
|
||||||
@ -557,6 +558,7 @@ export class CollaborationManager {
|
|||||||
this.currentAppId = null
|
this.currentAppId = null
|
||||||
this.reactFlowStore = null
|
this.reactFlowStore = null
|
||||||
this.cursors = {}
|
this.cursors = {}
|
||||||
|
this.onlineUsers = []
|
||||||
this.nodePanelPresence = {}
|
this.nodePanelPresence = {}
|
||||||
this.isUndoRedoInProgress = false
|
this.isUndoRedoInProgress = false
|
||||||
this.rejoinInProgress = false
|
this.rejoinInProgress = false
|
||||||
@ -1345,6 +1347,7 @@ export class CollaborationManager {
|
|||||||
if (data.leader && typeof data.leader === 'string')
|
if (data.leader && typeof data.leader === 'string')
|
||||||
this.leaderId = data.leader
|
this.leaderId = data.leader
|
||||||
|
|
||||||
|
this.onlineUsers = data.users
|
||||||
this.eventEmitter.emit('onlineUsers', data.users)
|
this.eventEmitter.emit('onlineUsers', data.users)
|
||||||
this.eventEmitter.emit('cursors', { ...this.cursors })
|
this.eventEmitter.emit('cursors', { ...this.cursors })
|
||||||
}
|
}
|
||||||
@ -1383,10 +1386,12 @@ export class CollaborationManager {
|
|||||||
|
|
||||||
socket.on('disconnect', (reason) => {
|
socket.on('disconnect', (reason) => {
|
||||||
this.cursors = {}
|
this.cursors = {}
|
||||||
|
this.onlineUsers = []
|
||||||
this.isLeader = false
|
this.isLeader = false
|
||||||
this.leaderId = null
|
this.leaderId = null
|
||||||
this.pendingInitialSync = false
|
this.pendingInitialSync = false
|
||||||
this.eventEmitter.emit('stateChange', { isConnected: false, disconnectReason: reason })
|
this.eventEmitter.emit('stateChange', { isConnected: false, disconnectReason: reason })
|
||||||
|
this.eventEmitter.emit('onlineUsers', [])
|
||||||
this.eventEmitter.emit('cursors', {})
|
this.eventEmitter.emit('cursors', {})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user