mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 23:02:31 +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
|
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>
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user