From 8b6333237e062b21dda09f76d8b7034fcc0952c2 Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Wed, 8 May 2024 01:35:24 +0200 Subject: [PATCH] add more details to undo ui --- app/src/lib/components/History.svelte | 9 +++++++++ app/src/routes/+layout.svelte | 2 ++ 2 files changed, 11 insertions(+) diff --git a/app/src/lib/components/History.svelte b/app/src/lib/components/History.svelte index 5223233bf..184369edb 100644 --- a/app/src/lib/components/History.svelte +++ b/app/src/lib/components/History.svelte @@ -104,6 +104,15 @@ restored_from: {entry.details?.trailers .find((t) => t.key === 'restored_from') ?.value?.slice(0, 7)} + {:else if entry.details?.operation === 'DeleteBranch'} + name: {entry.details?.trailers.find((t) => t.key === 'name')?.value} + {:else if ['ReorderBranches', 'UpdateBranchName', 'SelectDefaultVirtualBranch', 'UpdateBranchRemoteName'].includes(entry.details?.operation || '')} +
+ before: {entry.details?.trailers.find((t) => t.key === 'before')?.value} +
+
+ after: {entry.details?.trailers.find((t) => t.key === 'after')?.value} +
{/if}
diff --git a/app/src/routes/+layout.svelte b/app/src/routes/+layout.svelte index 48f14ff37..24573464e 100644 --- a/app/src/routes/+layout.svelte +++ b/app/src/routes/+layout.svelte @@ -79,6 +79,8 @@ }); + e.preventDefault()} on:dragover={(e) => e.preventDefault()} /> +