[PR #277] [MERGED] Fix Install button not appearing for VM and tools scripts #303

Closed
opened 2025-11-20 04:14:02 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/277
Author: @michelroegl-brunner
Created: 11/7/2025
Status: Merged
Merged: 11/7/2025
Merged by: @michelroegl-brunner

Base: mainHead: fix/251


📝 Commits (2)

  • 2ee5f73 Fix Install button not appearing for VM and tools scripts
  • 7f1ef91 Fix vitest dependency version mismatch

📊 Changes

3 files changed (+554 additions, -71 deletions)

View changed files

📝 package-lock.json (+411 -49)
📝 package.json (+1 -1)
📝 src/server/services/scriptDownloader.js (+142 -21)

📄 Description

Problem

When downloading VM scripts or tools scripts (including tools/addon and tools/pve), only the "Load Script" button appeared, but the "Install" button didn't show up.

Solution

  • Updated checkScriptExists to preserve subdirectory structure for tools and VM scripts (e.g., tools/pve/script.sh now correctly checks tools/pve/script.sh)
  • Set ctExists=true for tools and VM scripts when their files exist (not just CT scripts)
  • Added missing compareScriptContent method to JavaScript version (was causing runtime errors)
  • Removed all VW script references as they don't exist

Changes

  • src/server/services/scriptDownloader.js: Updated checkScriptExists method and added compareScriptContent method

Fixes the issue where the Install button was missing after downloading VM or tools scripts.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE-Local/pull/277 **Author:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Created:** 11/7/2025 **Status:** ✅ Merged **Merged:** 11/7/2025 **Merged by:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Base:** `main` ← **Head:** `fix/251` --- ### 📝 Commits (2) - [`2ee5f73`](https://github.com/community-scripts/ProxmoxVE-Local/commit/2ee5f73117f8812282be49571f6d0dda89a3f633) Fix Install button not appearing for VM and tools scripts - [`7f1ef91`](https://github.com/community-scripts/ProxmoxVE-Local/commit/7f1ef91db998a2509467d907f48cdadae0aab95e) Fix vitest dependency version mismatch ### 📊 Changes **3 files changed** (+554 additions, -71 deletions) <details> <summary>View changed files</summary> 📝 `package-lock.json` (+411 -49) 📝 `package.json` (+1 -1) 📝 `src/server/services/scriptDownloader.js` (+142 -21) </details> ### 📄 Description ## Problem When downloading VM scripts or tools scripts (including `tools/addon` and `tools/pve`), only the "Load Script" button appeared, but the "Install" button didn't show up. ## Solution - Updated `checkScriptExists` to preserve subdirectory structure for tools and VM scripts (e.g., `tools/pve/script.sh` now correctly checks `tools/pve/script.sh`) - Set `ctExists=true` for tools and VM scripts when their files exist (not just CT scripts) - Added missing `compareScriptContent` method to JavaScript version (was causing runtime errors) - Removed all VW script references as they don't exist ## Changes - `src/server/services/scriptDownloader.js`: Updated `checkScriptExists` method and added `compareScriptContent` method Fixes the issue where the Install button was missing after downloading VM or tools scripts. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 04:14:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE-Local#303