Profiles tab forgets a running save after switching VMs

Open Beginner friendly
#127 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
77/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
electron, react, typescript
Domain
desktop, frontend

Research direction

Read Profiles.tsx and trace how VmDetail receives the current VM's profile work from App through profileWork() and onProfileWork. Use that state alongside the tab's local busy state for the buttons and save hint. Done when switching VMs during a save keeps the controls disabled, shows Saving…, and preserves the correct hint until the work finishes.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
3
Forks
0
Avg merge
2m
Merged PRs (30d)
59

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from A21-devs/Virtual-Machine-Manager

All issues in A21-devs/Virtual-Machine-Manager

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.