Profiles tab forgets a running save after switching VMs

未关闭 适合新手
#127 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
77/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
electron, react, typescript
领域
desktop, frontend

调研方向

阅读 Profiles.tsx,并追踪 VmDetail 如何通过 profileWork() 和 onProfileWork 从 App 接收当前 VM 的配置文件工作。将该状态与选项卡本地的 busy 状态结合,用于按钮和保存提示。当在保存期间切换 VM 时,控件仍保持禁用、显示 保存中…,并保留正确的提示,直到工作完成,即视为完成。

由索引模型根据 Issue 内容生成。

描述

bug ui

The Profiles tab keeps its own busy state (Profiles.tsx). VmDetail is keyed by the VM name, so selecting another VM and coming back mounts a fresh Profiles tab with busy = null while the save is still running in the backend:

  • Save profile, Launch, Edit and Delete are enabled again, and Save/Launch/Delete fail with "is still busy with another profile".
  • The button no longer says Saving…, and while the VM is off in the middle of a session save the hint switches to "is off, so this saves the disk only", which isn't what's happening.

Since #121 the backend reports profile work (profileWork() / onProfileWork). The tab could take the VM's current work from App and use it alongside its own busy for the buttons and the hint.

主要语言
TypeScript
星标
3
派生
0
平均合并
2 分钟
30 天内合并 PR
59

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

A21-devs/Virtual-Machine-Manager 的其他 Issue

查看 A21-devs/Virtual-Machine-Manager 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。