-
{$i18n.t('or')}
-
+
+
+
+
{$i18n.t('Share Chat')}
+
+
+
+
+ Messages you send after creating your link won't be shared. Anyone with the URL will be able
+ to view the shared chat.
+
+
+
+
+
+
+
+
+
+
+
{$i18n.t('or')}
+
+
+
+
+
diff --git a/src/lib/components/icons/Link.svelte b/src/lib/components/icons/Link.svelte
new file mode 100644
index 000000000..9f1a72311
--- /dev/null
+++ b/src/lib/components/icons/Link.svelte
@@ -0,0 +1,16 @@
+
+
+
diff --git a/src/lib/components/layout/Navbar.svelte b/src/lib/components/layout/Navbar.svelte
index 7be5fbd8c..8729029fc 100644
--- a/src/lib/components/layout/Navbar.svelte
+++ b/src/lib/components/layout/Navbar.svelte
@@ -70,14 +70,16 @@
console.log('shareLocal', chat);
if (chat.share_id) {
const shareUrl = `${window.location.origin}/s/${chat.share_id}`;
- toast.info(
+ toast.success(
$i18n.t('Chat is already shared at {{shareUrl}}, copied to clipboard', { shareUrl })
);
copyToClipboard(shareUrl);
} else {
const sharedChat = await shareChatById(localStorage.token, $chatId);
const shareUrl = `${window.location.origin}/s/${sharedChat.id}`;
- toast.info($i18n.t('Chat is now shared at {{shareUrl}}, copied to clipboard', { shareUrl }));
+ toast.success(
+ $i18n.t('Chat is now shared at {{shareUrl}}, copied to clipboard', { shareUrl })
+ );
copyToClipboard(shareUrl);
}
};