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
fb3804ac
Commit
fb3804ac
authored
Feb 25, 2024
by
Timothy J. Baek
Browse files
fix: check version loading progress
parent
759883a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/lib/components/chat/Settings/About.svelte
src/lib/components/chat/Settings/About.svelte
+7
-2
No files found.
src/lib/components/chat/Settings/About.svelte
View file @
fb3804ac
...
@@ -8,13 +8,14 @@
...
@@ -8,13 +8,14 @@
let ollamaVersion = '';
let ollamaVersion = '';
let updateAvailable =
false
;
let updateAvailable =
null
;
let version = {
let version = {
current: '',
current: '',
latest: ''
latest: ''
};
};
const checkForVersionUpdates = async () => {
const checkForVersionUpdates = async () => {
updateAvailable = null;
version = await getVersionUpdates(localStorage.token).catch((error) => {
version = await getVersionUpdates(localStorage.token).catch((error) => {
return {
return {
current: WEBUI_VERSION,
current: WEBUI_VERSION,
...
@@ -54,7 +55,11 @@
...
@@ -54,7 +55,11 @@
href="https://github.com/open-webui/open-webui/releases/tag/v{version.latest}"
href="https://github.com/open-webui/open-webui/releases/tag/v{version.latest}"
target="_blank"
target="_blank"
>
>
{updateAvailable ? `(v${version.latest} available!)` : '(latest)'}
{updateAvailable === null
? 'Checking for updates...'
: updateAvailable
? `(v${version.latest} available!)`
: '(latest)'}
</a>
</a>
</div>
</div>
...
...
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