Remove the leftover draft mode from VmDetail, Hardware and Sidebar

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

阅读 App.tsx 中的调用位置,以及 VmDetail.tsx、Hardware.tsx 和 Sidebar.tsx 中与草稿相关的代码。删除列出的草稿 props 和 UI 状态,然后检查这些组件及其调用方是否还有残留引用。完成标准是移除过时的草稿流程,且不改变行为。

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

描述

ui

Since the new VM wizard (#73), a new VM is never shown as an unsaved draft anymore. App.tsx always passes isDraft={false}, draftName={null} and a no-op onCancelDraft.

The code for it is still in:

  • VmDetail.tsx: isDraft, onCancelDraft, the "Not created yet" state, tabs disabled for drafts
  • Hardware.tsx: the Cancel/Create button labels and the draft disk size hint
  • Sidebar.tsx: the draftName row

It can all go, along with the props. No behavior change.

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

环境准备

从这里开始

  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 摘要。