fix: distinguish current and historical stopped schedule state

This commit is contained in:
VAIO73
2026-10-16 17:21:34 +00:00
parent 413ac5e80e
commit d25747646e
5 changed files with 31 additions and 11 deletions
+3 -1
View File
@@ -2450,7 +2450,9 @@ const handleDownloadLogs = async (vmid: number, vmName: string) => {
if (!scheduleLastRunAt || !selectedVM) return null
const spacing = indented ? "pl-4" : ""
const scheduleLastRunReasonText = scheduleLastRunReasonCode === "stopped_container"
? t("vmLxc.scheduled.reasonStoppedContainer")
? selectedVM.status === "stopped"
? t("vmLxc.scheduled.reasonStoppedContainer")
: t("vmLxc.scheduled.reasonStoppedContainerHistorical")
: scheduleLastRunReason
return (
<div className={`space-y-1.5 ${spacing}`}>