fix(frontend): allow per-row actions during batch edit in connections view

remove batch-mode disabling from each row's connect and more buttons in
the connections management page so users can keep multi-select context
while still operating on individual servers

update changelog entry to document the quick fix and affected file
This commit is contained in:
yinjianm
2026-04-12 23:25:06 +08:00
parent b660fc1f37
commit 264d1b0cc4
2 changed files with 5 additions and 4 deletions
+3
View File
@@ -45,6 +45,9 @@
- 方案: [202603250614_terminal-ansi-color-effects](archive/2026-03/202603250614_terminal-ansi-color-effects/) - 方案: [202603250614_terminal-ansi-color-effects](archive/2026-03/202603250614_terminal-ansi-color-effects/)
### 快速修改 ### 快速修改
- **[frontend]**: 取消连接管理页在“批量修改”模式下对单行“连接 / 更多”按钮的禁用,保留批量选择同时允许继续操作单台服务器 — by yinjianm
- 类型: 快速修改(无方案包)
- 文件: packages/frontend/src/views/ConnectionsView.vue
- **[frontend]**: 修复右侧状态监控在窄侧栏下的内存/磁盘卡片字体重叠问题,改为基于卡片容器宽度自适应折列与缩字 — by yinjianm - **[frontend]**: 修复右侧状态监控在窄侧栏下的内存/磁盘卡片字体重叠问题,改为基于卡片容器宽度自适应折列与缩字 — by yinjianm
- 类型: 快速修改(无方案包) - 类型: 快速修改(无方案包)
- 文件: packages/frontend/src/components/StatusMonitor.vue:446-452,572-600,697-707,744-802 - 文件: packages/frontend/src/components/StatusMonitor.vue:446-452,572-600,697-707,744-802
@@ -1591,8 +1591,7 @@ onBeforeUnmount(() => {
<div class="flex flex-wrap justify-start xl:justify-end gap-2 relative"> <div class="flex flex-wrap justify-start xl:justify-end gap-2 relative">
<button <button
@click.stop="connectTo(conn)" @click.stop="connectTo(conn)"
:disabled="isBatchEditMode" class="px-4 py-2 rounded-lg bg-button text-button-text border border-button hover:bg-button-hover transition-colors inline-flex items-center gap-2 text-sm font-medium"
class="px-4 py-2 rounded-lg bg-button text-button-text border border-button hover:bg-button-hover transition-colors disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center gap-2 text-sm font-medium"
> >
<i class="fas fa-arrow-right-to-bracket"></i> <i class="fas fa-arrow-right-to-bracket"></i>
<span>{{ t('connections.actions.connect', '连接') }}</span> <span>{{ t('connections.actions.connect', '连接') }}</span>
@@ -1601,8 +1600,7 @@ onBeforeUnmount(() => {
<div class="relative"> <div class="relative">
<button <button
@click.stop="toggleMoreMenu(conn.id)" @click.stop="toggleMoreMenu(conn.id)"
:disabled="isBatchEditMode" class="px-3 py-2 rounded-lg border border-border bg-background text-foreground hover:bg-border transition-colors inline-flex items-center gap-2 text-sm"
class="px-3 py-2 rounded-lg border border-border bg-background text-foreground hover:bg-border transition-colors inline-flex items-center gap-2 text-sm disabled:opacity-50 disabled:cursor-not-allowed"
> >
<i class="fas fa-ellipsis"></i> <i class="fas fa-ellipsis"></i>
<span>{{ t('common.more', '更多') }}</span> <span>{{ t('common.more', '更多') }}</span>