Retain host and server scope during investigations

This commit is contained in:
2026-10-05 19:05:07 -04:00
parent 056fbd7517
commit cd577b646c
12 changed files with 95 additions and 29 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
<script lang="ts">
import { safeReturnHref, returnLabel } from '$lib/navigation-context.js';
import { safeReturnHref, returnLabel, contextHref } from '$lib/navigation-context.js';
import { onDestroy, onMount, untrack } from 'svelte';
import { page } from '$app/stores';
import type { PageData } from './$types';
@@ -145,7 +145,7 @@
</dl>
{#if detail.agentOperation.error}<p>{detail.agentOperation.error}</p>{/if}
{#if outcome.active && detail.agentOperation.state === 'completed'}<p>The agent finished its command. EC is verifying readiness.</p>{/if}
<a href="/hosts/operations">View host operation history</a>
<a href={contextHref(`/hosts/operations?server=${encodeURIComponent(deployment.server)}`, $page.url)}>View host operation history</a>
</div></Card>
{/if}
{#if outcome.active && detail.workerActivity}