Merge pull request #4048 from gitbutlerapp/update-svelte-dependencies

if an oplog entry had an error, show it
This commit is contained in:
Kiril Videlov 2024-06-09 22:07:41 +02:00 committed by GitHub
commit de25abf090
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;