Fix the script terminal, Arr suite updates and OCI app tracking

This commit is contained in:
MacRimi
2026-09-26 16:57:35 +02:00
parent 93862abdb0
commit dd4bcfa867
14 changed files with 220 additions and 39 deletions
+5 -1
View File
@@ -1773,7 +1773,11 @@ export function LxcAppPanel({ vmid, ctIp, onChange, managed, initialData }: Prop
<SelectItem value="binary">{t("vmLxc.appEditor.binaryVersionHint")}</SelectItem>
<SelectItem value="file">{t("vmLxc.appEditor.methodFile")}</SelectItem>
<SelectItem value="python_dist">{t("vmLxc.appEditor.methodPython")}</SelectItem>
<SelectItem value="docker_label" disabled>{t("vmLxc.appEditor.methodDockerLabel")}</SelectItem>
{/* Chosen by detection for a Docker workload; kept only so an
application already using it shows its method. */}
{method === "docker_label" && (
<SelectItem value="docker_label">{t("vmLxc.appEditor.methodDockerLabel")}</SelectItem>
)}
<SelectItem value="docker_exec">{t("vmLxc.appEditor.methodDockerExec")}</SelectItem>
<SelectItem value="command">{t("vmLxc.appEditor.methodCommand")}</SelectItem>
<SelectItem value="manual">{t("vmLxc.appEditor.methodManual")}</SelectItem>
@@ -649,7 +649,7 @@ const initMessage = {
return
}
if (value === "cancel") {
if (value === "cancel" || value === "") {
setCurrentInteraction(null)
setInteractionInput("")
handleCloseModal()
@@ -755,7 +755,7 @@ const initMessage = {
return (
<>
<Dialog open={isOpen} onOpenChange={(open) => { if (!open) onClose() }}>
<Dialog open={isOpen} onOpenChange={onClose}>
<DialogContent
className="max-w-7xl p-0 flex flex-col gap-0 overflow-hidden"
style={{
+10
View File
@@ -1427,6 +1427,16 @@ export function VirtualMachines() {
setOciInstance(null)
})
// An operation that is still running when the modal opens clears on its
// own: the record is read again until it is published.
useEffect(() => {
if (!ociInstance?.pending || !selectedVM) return
const vmid = selectedVM.vmid
const timer = setInterval(() => fetchOciInstance(vmid), 15000)
return () => clearInterval(timer)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [ociInstance?.pending, selectedVM?.vmid])
const fetchMountPoints = async (vmid: number) => {
// Two fetches in parallel:
// 1) STATIC — configured mp entries + PVE classification. Backed