fix: WinRM update panel no longer blocks SAC navigation (0.20.21)
This commit is contained in:
@@ -38,6 +38,7 @@ function finishModal(job: HostRemoteActionJobStatus) {
|
||||
hostRemoteActionLog.loading = false;
|
||||
hostRemoteActionLog.ok = job.ok ?? job.status === "success";
|
||||
applyJobToModal(job);
|
||||
hostRemoteActionLog.open = true;
|
||||
}
|
||||
|
||||
async function pollRemoteJob(hostId: number): Promise<HostRemoteActionJobStatus> {
|
||||
@@ -115,6 +116,15 @@ export async function runHostRemoteAction(
|
||||
}
|
||||
|
||||
export function closeHostRemoteActionLog() {
|
||||
if (hostRemoteActionLog.loading) return;
|
||||
hostRemoteActionLog.open = false;
|
||||
}
|
||||
|
||||
export function showHostRemoteActionLog() {
|
||||
if (hostRemoteActionLog.loading || hostRemoteActionLog.ok != null) {
|
||||
hostRemoteActionLog.open = true;
|
||||
}
|
||||
}
|
||||
|
||||
export function hasActiveHostRemoteAction(): boolean {
|
||||
return hostRemoteActionLog.loading;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user