mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-26 02:51:57 +03:00
Merge pull request #4048 from gitbutlerapp/update-svelte-dependencies
if an oplog entry had an error, show it
This commit is contained in:
commit
de25abf090
@ -149,6 +149,7 @@
|
||||
}
|
||||
|
||||
const isRestoreSnapshot = entry.details?.operation === 'RestoreFromSnapshot';
|
||||
const error = entry.details?.trailers.find((t) => t.key === 'error')?.value;
|
||||
|
||||
const operation = mapOperation(entry.details);
|
||||
|
||||
@ -258,10 +259,16 @@
|
||||
</div>
|
||||
</SnapshotAttachment>
|
||||
{/if}
|
||||
{#if error}
|
||||
<span class="error-text">Error: {error}</span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style lang="postcss">
|
||||
.error-text {
|
||||
color: #e53e3e;
|
||||
}
|
||||
/* SNAPSHOT CARD */
|
||||
.snapshot-card {
|
||||
position: relative;
|
||||
|
Loading…
Reference in New Issue
Block a user