mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 06:22:28 +03:00
add more details to undo ui
This commit is contained in:
parent
7cddab8285
commit
8b6333237e
@ -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 || '')}
|
||||
<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}
|
||||
</div>
|
||||
<div>
|
||||
|
@ -79,6 +79,8 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
<svelte:window on:drop={(e) => e.preventDefault()} on:dragover={(e) => e.preventDefault()} />
|
||||
|
||||
<div
|
||||
data-tauri-drag-region
|
||||
class="app-root"
|
||||
|
Loading…
Reference in New Issue
Block a user