Preserve originating views through detail navigation
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
import { contextHref } from '$lib/navigation-context.js';
|
||||
import RoundTelemetry from './RoundTelemetry.svelte';
|
||||
import ServerIdentity from './ServerIdentity.svelte';
|
||||
import type { RosterPlayer, Health } from '$ui/stores/servers.js';
|
||||
@@ -93,7 +95,7 @@
|
||||
</script>
|
||||
|
||||
<Card
|
||||
href="/servers/{name}"
|
||||
href={contextHref(`/servers/${encodeURIComponent(name)}`, $page.url)}
|
||||
elevation="interactive"
|
||||
padding="md"
|
||||
class={restarting ? 'restarting' : health === 'offline' ? 'offline' : ''}
|
||||
|
||||
Reference in New Issue
Block a user