add more details to undo ui

This commit is contained in:
Kiril Videlov 2024-05-08 01:35:24 +02:00
parent 7cddab8285
commit 8b6333237e
2 changed files with 11 additions and 0 deletions

View File

@ -104,6 +104,15 @@
restored_from: {entry.details?.trailers restored_from: {entry.details?.trailers
.find((t) => t.key === 'restored_from') .find((t) => t.key === 'restored_from')
?.value?.slice(0, 7)} ?.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 || '')}
<div>
before: {entry.details?.trailers.find((t) => t.key === 'before')?.value}
</div>
<div>
after: {entry.details?.trailers.find((t) => t.key === 'after')?.value}
</div>
{/if} {/if}
</div> </div>
<div> <div>

View File

@ -79,6 +79,8 @@
}); });
</script> </script>
<svelte:window on:drop={(e) => e.preventDefault()} on:dragover={(e) => e.preventDefault()} />
<div <div
data-tauri-drag-region data-tauri-drag-region
class="app-root" class="app-root"