mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-09-29 18:16:43 +00:00
Fix the script terminal, Arr suite updates and OCI app tracking
This commit is contained in:
@@ -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={{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user