Repository navigation
Remove the leftover draft mode - #134
Merged
Merged
Conversation
Since the new VM wizard a new VM is never shown as an unsaved draft.
App always passed isDraft={false} and a no-op onCancelDraft, so the Not
created yet state, the disabled tabs, the Cancel/Create labels and the
draft disk size hint could never show. No behavior change.
draftName was always null. The .row.draft style goes with it.
A21-devs
commented
Dec 2, 2026
A21-devs
left a comment
Owner
Author
There was a problem hiding this comment.
Read the whole diff. Every removed branch was behind isDraft or draftName, which App hard-coded to false / null, so what's left is exactly what ran before. Checked that nothing else read the props (no hits for isDraft, draftName, onCancelDraft or .draft left in src) and that the first commit builds without the second.
The one leftover I looked at is form.name || 'Untitled' in the heading. It looks draft-era, but it still matters: clearing the Name field on an existing VM would otherwise leave an empty heading while the name error shows. Keeping it is right. Clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #82
Since the new VM wizard (#73) a new VM is never shown as an unsaved draft. App always passed
isDraft={false},draftName={null}and a no-oponCancelDraft, so this code could never run:VmDetail: the "Not created yet" status, tabs disabled for a draft, opening on Hardware,dirtyforced true, the Cancel path of Revert.Hardware: the Cancel/Create button labels, the draft disk size hint, and the conditions around Disk tools and Remove from library (both now always shown, as they already were).Sidebar: thedraftNamerow, and its.row.draftstyle.The props go too. No behavior change. Two commits, and the first one typechecks on its own.
Testing
npm run typecheck(also on the first commit alone),npm test(143 passed),npm run build