Commit 62ba6a24 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

chore: format

parent b875efab
...@@ -20,7 +20,15 @@ ...@@ -20,7 +20,15 @@
const manifest = extractFrontmatter(data.content); const manifest = extractFrontmatter(data.content);
if (compareVersion(manifest?.required_open_webui_version ?? '0.0.0', WEBUI_VERSION)) { if (compareVersion(manifest?.required_open_webui_version ?? '0.0.0', WEBUI_VERSION)) {
console.log('Version is lower than required'); console.log('Version is lower than required');
toast.error($i18n.t('Open WebUI version is lower than required version')); toast.error(
$i18n.t(
'Open WebUI version (v{{OPEN_WEBUI_VERSION}}) is lower than required version (v{{REQUIRED_VERSION}})',
{
OPEN_WEBUI_VERSION: WEBUI_VERSION,
REQUIRED_VERSION: manifest?.required_open_webui_version ?? '0.0.0'
}
)
);
return; return;
} }
......
...@@ -20,7 +20,15 @@ ...@@ -20,7 +20,15 @@
const manifest = extractFrontmatter(data.content); const manifest = extractFrontmatter(data.content);
if (compareVersion(manifest?.required_open_webui_version ?? '0.0.0', WEBUI_VERSION)) { if (compareVersion(manifest?.required_open_webui_version ?? '0.0.0', WEBUI_VERSION)) {
console.log('Version is lower than required'); console.log('Version is lower than required');
toast.error($i18n.t('Open WebUI version is lower than required version')); toast.error(
$i18n.t(
'Open WebUI version (v{{OPEN_WEBUI_VERSION}}) is lower than required version (v{{REQUIRED_VERSION}})',
{
OPEN_WEBUI_VERSION: WEBUI_VERSION,
REQUIRED_VERSION: manifest?.required_open_webui_version ?? '0.0.0'
}
)
);
return; return;
} }
......
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