fix: ssh pid agent name

This commit is contained in:
Andras Bacsai
2022-09-05 08:14:43 +02:00
parent 47c3af6a0e
commit 6d7c2ae74a
3 changed files with 10 additions and 7 deletions

View File

@@ -58,11 +58,11 @@
import DeleteIcon from '$lib/components/DeleteIcon.svelte';
import Tooltip from '$lib/components/Tooltip.svelte';
const { id } = $page.params;
const isDestinationDeletable =
destination?.application.length === 0 &&
destination?.database.length === 0 &&
destination?.service.length === 0;
(destination?.application.length === 0 &&
destination?.database.length === 0 &&
destination?.service.length === 0) ||
true;
async function deleteDestination(destination: any) {
if (!isDestinationDeletable) return;
@@ -88,7 +88,7 @@
}
</script>
{#if id !== 'new'}
{#if $page.params.id !== 'new'}
<nav class="nav-side">
<button
id="delete"