diff --git a/src/components/menus/MenuDivider.svelte b/src/components/menus/MenuDivider.svelte
new file mode 100644
index 0000000000..847937d1c1
--- /dev/null
+++ b/src/components/menus/MenuDivider.svelte
@@ -0,0 +1,8 @@
+
+
+
diff --git a/src/components/menus/PlanMenu.svelte b/src/components/menus/PlanMenu.svelte
index b281a400b3..8f1c3ee688 100644
--- a/src/components/menus/PlanMenu.svelte
+++ b/src/components/menus/PlanMenu.svelte
@@ -14,6 +14,7 @@
import { featurePermissions } from '../../utilities/permissions';
import Menu from '../menus/Menu.svelte';
import MenuItem from '../menus/MenuItem.svelte';
+ import MenuDivider from './MenuDivider.svelte';
export let plan: Plan;
export let user: User | null;
@@ -66,7 +67,7 @@
View merge requests
{#if plan.parent_plan !== null}
-
+
{/if}
-
+
diff --git a/src/components/plan/PlanForm.svelte b/src/components/plan/PlanForm.svelte
index aaa728f913..605af38528 100644
--- a/src/components/plan/PlanForm.svelte
+++ b/src/components/plan/PlanForm.svelte
@@ -151,6 +151,7 @@
{planSnapshot}
on:click={() => setQueryParam(SearchParameters.SNAPSHOT_ID, `${planSnapshot.snapshot_id}`)}
on:restore={() => effects.restorePlanSnapshot(planSnapshot, user)}
+ on:delete={() => effects.deletePlanSnapshot(planSnapshot, user)}
/>
{/each}
diff --git a/src/components/plan/PlanSnapshot.svelte b/src/components/plan/PlanSnapshot.svelte
index da9f6b4f4e..ebed900885 100644
--- a/src/components/plan/PlanSnapshot.svelte
+++ b/src/components/plan/PlanSnapshot.svelte
@@ -6,6 +6,7 @@
import type { PlanSnapshot } from '../../types/plan-snapshot';
import { getSimulationProgress, getSimulationStatus } from '../../utilities/simulation';
import Menu from '../menus/Menu.svelte';
+ import MenuDivider from '../menus/MenuDivider.svelte';
import MenuItem from '../menus/MenuItem.svelte';
import Card from '../ui/Card.svelte';
import StatusBadge from '../ui/StatusBadge.svelte';
@@ -39,6 +40,8 @@
@@ -51,7 +54,6 @@
--aerie-menu-item-template-columns: auto;
--aerie-menu-item-line-height: 1rem;
--aerie-menu-item-font-size: 12px;
- /* --aerie-menu-item-padding: 4px; */
align-items: center;
display: flex;
gap: 8px;
diff --git a/src/utilities/gql.ts b/src/utilities/gql.ts
index a821b6f099..22edf27800 100644
--- a/src/utilities/gql.ts
+++ b/src/utilities/gql.ts
@@ -496,7 +496,7 @@ const gql = {
DELETE_PLAN_SNAPSHOT: `#graphql
mutation DeletePlanSnapshot($snapshot_id: Int!) {
- deletePlanSnapshot: delete_plan_snapshot(snapshot_id: $snapshot_id) {
+ deletePlanSnapshot: delete_plan_snapshot_by_pk(snapshot_id: $snapshot_id) {
snapshot_id
}
}