Skip to content

fix: enable recent session connections - #5697

Open
Wanpl-Java wants to merge 1 commit into
jumpserver:v4from
Wanpl-Java:v4
Open

fix: enable recent session connections#5697
Wanpl-Java wants to merge 1 commit into
jumpserver:v4from
Wanpl-Java:v4

Conversation

@Wanpl-Java

Copy link
Copy Markdown

Summary

  • Backport fix: enable recent session connections #5694 to v4
  • 工作台「最近会话」连接按钮使用 can: ({ row }) => row.is_active,但 /api/v1/terminal/my-sessions/ 不返回 is_active
  • 4.10.19 起 ActionsFormatter 改为 disabled = !can 后,undefined 会被当成不可点,导致按钮置灰

Changes

  • 移除 src/views/workbench/overview/components/Session.vue 中错误的 is_active 判断
  • 该按钮语义是按资产/账号再次连接,不应依赖会话在线状态

Test plan

  • 工作台 → 概览 → 最近会话,操作列连接图标可点击(非置灰)
  • 点击后正常打开 Luna,并带上对应资产/账号
  • 无权限或资产已删除时,连接失败表现与「我的资产」中连接一致

Remove the is_active check because my-sessions API does not return it.
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant