Skip to content

fix: Add dynamic text to container control loading modal#358

Merged
michelroegl-brunner merged 3 commits intomainfrom
fix/357_356
Nov 29, 2025
Merged

fix: Add dynamic text to container control loading modal#358
michelroegl-brunner merged 3 commits intomainfrom
fix/357_356

Conversation

@michelroegl-brunner
Copy link
Copy Markdown
Member

Description

This PR adds dynamic text to the container control loading modal to show what action is being performed and the container type.

Changes

  • Updated LoadingModal component to display the action prop text below the spinner
  • Updated handleStartStop function to include container type (LXC/VM) in the action text
  • Users now see "Starting LXC...", "Starting VM...", "Stopping LXC...", or "Stopping VM..." based on the action and container type

Related Issues

Fixes the user experience issue where the loading modal only showed a spinner without clear indication of what action was being performed.

Testing

  • Tested starting/stopping LXC containers - shows "Starting LXC..." / "Stopping LXC..."
  • Tested starting/stopping VMs - shows "Starting VM..." / "Stopping VM..."

…zation

- Add batchDetectContainerTypes() helper function that uses pct list and qm list to detect all container types in 2 SSH calls per server
- Update getAllInstalledScripts to use batch detection instead of individual isVM() calls per script
- Update getInstalledScriptsByServer to use batch detection for single server
- Update database queries to include lxc_config relation for fallback detection
- Fix isVM() function to properly default to LXC when VM config doesn't exist
- Significantly improves performance: reduces from N SSH calls per script to 2 SSH calls per server
- Update LoadingModal to display action text (Starting/Stopping LXC/VM)
- Update handleStartStop to include container type (LXC/VM) in action text
- Show clear feedback when starting or stopping containers
@michelroegl-brunner michelroegl-brunner requested a review from a team as a code owner November 29, 2025 14:58
@michelroegl-brunner michelroegl-brunner merged commit 9bbc19a into main Nov 29, 2025
4 checks passed
@MickLesk MickLesk deleted the fix/357_356 branch April 1, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Container Control treats LXC as VM (Error: unable to find configuration file for VM <ID>) Location of lxc-conf-files changed

1 participant