fix: platform-specific placeholder in agent update log modal (v0.5.13)
Windows WinRM updates no longer show the Linux /var/log/update_script.log hint while output is still empty.
This commit is contained in:
@@ -135,6 +135,8 @@ import { isAgentVersionOutdated } from "../utils/agentVersion";
|
||||
import {
|
||||
isGitAgentUpgradeAvailable,
|
||||
remoteActionKindForHost,
|
||||
remoteActionLogPlaceholder,
|
||||
remoteActionLogPlaceholderFromTitle,
|
||||
remoteActionTitleForHost,
|
||||
} from "../utils/hostAgentUpgrade";
|
||||
import {
|
||||
@@ -289,7 +291,12 @@ async function startAgentUpgrade(h: HostSummary) {
|
||||
}
|
||||
const kind = remoteActionKindForHost(h);
|
||||
if (!kind) return;
|
||||
void runHostRemoteAction(h.id, remoteActionTitleForHost(h), kind);
|
||||
void runHostRemoteAction(
|
||||
h.id,
|
||||
remoteActionTitleForHost(h),
|
||||
kind,
|
||||
remoteActionLogPlaceholder(h, kind),
|
||||
);
|
||||
}
|
||||
|
||||
function openHost(id: number) {
|
||||
@@ -450,7 +457,11 @@ interface HostDeleteResponse {
|
||||
|
||||
async function onManualAddStarted(payload: { hostId: number; title: string }) {
|
||||
await loadHosts();
|
||||
void pollHostRemoteAction(payload.hostId, payload.title);
|
||||
void pollHostRemoteAction(
|
||||
payload.hostId,
|
||||
payload.title,
|
||||
remoteActionLogPlaceholderFromTitle(payload.title),
|
||||
);
|
||||
}
|
||||
|
||||
async function confirmDelete(h: HostSummary) {
|
||||
|
||||
Reference in New Issue
Block a user