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
581e7800
Commit
581e7800
authored
Jun 26, 2024
by
Timothy J. Baek
Browse files
fix
parent
0ec4d565
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
src/lib/components/workspace/Functions.svelte
src/lib/components/workspace/Functions.svelte
+6
-1
src/lib/components/workspace/Tools.svelte
src/lib/components/workspace/Tools.svelte
+6
-1
No files found.
src/lib/components/workspace/Functions.svelte
View file @
581e7800
...
@@ -43,7 +43,12 @@
...
@@ -43,7 +43,12 @@
let showDeleteConfirm = false;
let showDeleteConfirm = false;
const shareHandler = async (item) => {
const shareHandler = async (func) => {
const item = await getFunctionById(localStorage.token, func.id).catch((error) => {
toast.error(error);
return null;
});
toast.success($i18n.t('Redirecting you to OpenWebUI Community'));
toast.success($i18n.t('Redirecting you to OpenWebUI Community'));
const url = 'https://openwebui.com';
const url = 'https://openwebui.com';
...
...
src/lib/components/workspace/Tools.svelte
View file @
581e7800
...
@@ -39,7 +39,12 @@
...
@@ -39,7 +39,12 @@
let showDeleteConfirm = false;
let showDeleteConfirm = false;
const shareHandler = async (item) => {
const shareHandler = async (tool) => {
const item = await getToolById(localStorage.token, tool.id).catch((error) => {
toast.error(error);
return null;
});
toast.success($i18n.t('Redirecting you to OpenWebUI Community'));
toast.success($i18n.t('Redirecting you to OpenWebUI Community'));
const url = 'https://openwebui.com';
const url = 'https://openwebui.com';
...
...
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