"docs/en_US/Assessor/CurvefittingAssessor.md" did not exist on "6d495c42b6285c8ca2c6bfc135db9f6413004de5"
Commit fb3804ac authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: check version loading progress

parent 759883a4
......@@ -8,13 +8,14 @@
let ollamaVersion = '';
let updateAvailable = false;
let updateAvailable = null;
let version = {
current: '',
latest: ''
};
const checkForVersionUpdates = async () => {
updateAvailable = null;
version = await getVersionUpdates(localStorage.token).catch((error) => {
return {
current: WEBUI_VERSION,
......@@ -54,7 +55,11 @@
href="https://github.com/open-webui/open-webui/releases/tag/v{version.latest}"
target="_blank"
>
{updateAvailable ? `(v${version.latest} available!)` : '(latest)'}
{updateAvailable === null
? 'Checking for updates...'
: updateAvailable
? `(v${version.latest} available!)`
: '(latest)'}
</a>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment