fix: live SSH update log re-renders in modal (v0.5.7)
Remove cached openLogs computed that blocked Vue updates to output/loading; preserve log tail on empty poll; auto-scroll log panel.
This commit is contained in:
@@ -82,9 +82,16 @@ function scheduleSuccessAutoClose(entryId: string) {
|
||||
}
|
||||
|
||||
function applyJobToEntry(entry: HostRemoteActionLogEntry, job: HostRemoteActionJobStatus) {
|
||||
entry.title = job.title || entry.title;
|
||||
entry.message = job.message || entry.message;
|
||||
entry.output = job.output || job.stdout || "";
|
||||
if (job.title) {
|
||||
entry.title = job.title;
|
||||
}
|
||||
if (job.message) {
|
||||
entry.message = job.message;
|
||||
}
|
||||
const nextOutput = (job.output || job.stdout || "").trim();
|
||||
if (nextOutput) {
|
||||
entry.output = job.output || job.stdout || "";
|
||||
}
|
||||
}
|
||||
|
||||
function finishEntry(entry: HostRemoteActionLogEntry, job: HostRemoteActionJobStatus) {
|
||||
|
||||
Reference in New Issue
Block a user