mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-08-01 09:58:59 -04:00
PocketBase API records do not include a `script` field in `install_methods_json` (only local JSON scripts do). Since v0.5.7 migrated to PocketBase as the data source, `handleExecuteScript` in ScriptDetailModal was silently doing nothing — it checked for `method.script` which is always absent for PocketBase scripts, so `onInstallScript` was never called and the terminal never opened. Fix by adding a `deriveScriptPath()` helper (mirroring the logic already in `scriptDownloader.js`) and using it as a fallback when `method.script` is absent. Also forward `script` through `pbToScript` and add it to `PBInstallMethod` for forward compatibility. Fixes #520