Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
9b27d952
Commit
9b27d952
authored
Feb 22, 2024
by
Jannik Streidl
Browse files
better error handling
parent
06f53a68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/lib/components/chat/WhatsChangedModal.svelte
src/lib/components/chat/WhatsChangedModal.svelte
+3
-1
No files found.
src/lib/components/chat/WhatsChangedModal.svelte
View file @
9b27d952
...
@@ -13,6 +13,8 @@
...
@@ -13,6 +13,8 @@
function handleClick() {
function handleClick() {
toggleVisibility();
toggleVisibility();
}
}
let hasValidNotes = Array.isArray(RELEASE_NOTES) && RELEASE_NOTES.length > 0;
</script>
</script>
<Modal bind:show>
<Modal bind:show>
...
@@ -44,7 +46,7 @@
...
@@ -44,7 +46,7 @@
</div>
</div>
<hr class=" dark:border-gray-800" />
<hr class=" dark:border-gray-800" />
<div class="p-4 overflow-y-scroll max-h-80">
<div class="p-4 overflow-y-scroll max-h-80">
{#if
RELEASE_NOTES.length === 0
}
{#if
!hasValidNotes
}
<div class="pt-10 text-center font-bold">There are no notes given.</div>
<div class="pt-10 text-center font-bold">There are no notes given.</div>
<div class="pb-10 text-center">
<div class="pb-10 text-center">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment