forked from open-webui/open-webui
feat: add frontend support for locally sharing chats
This commit is contained in:
parent
94976e5ed3
commit
7978adbf45
9 changed files with 433 additions and 106 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
export let downloadChat: Function;
|
||||
export let shareChat: Function;
|
||||
export let shareLocalChat: Function;
|
||||
|
||||
export let show = false;
|
||||
</script>
|
||||
|
@ -23,6 +24,17 @@
|
|||
{$i18n.t('Share to OpenWebUI Community')}
|
||||
</button>
|
||||
|
||||
<button
|
||||
class=" self-center px-8 py-1.5 w-full rounded-full text-sm font-medium bg-blue-600 hover:bg-blue-500 text-white mt-1.5"
|
||||
type="button"
|
||||
on:click={() => {
|
||||
shareLocalChat();
|
||||
show = false;
|
||||
}}
|
||||
>
|
||||
{$i18n.t('Create local share link')}
|
||||
</button>
|
||||
|
||||
<div class="flex justify-center space-x-1 mt-1.5">
|
||||
<div class=" self-center text-gray-400 text-xs font-medium">{$i18n.t('or')}</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue