This commit is contained in:
Timothy J. Baek 2024-06-26 00:36:35 -07:00
parent 0ec4d56593
commit 581e7800fa
2 changed files with 12 additions and 2 deletions

View File

@ -43,7 +43,12 @@
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'));
const url = 'https://openwebui.com';

View File

@ -39,7 +39,12 @@
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'));
const url = 'https://openwebui.com';