Skip to content

Commit

Permalink
Merge pull request #1572 from solliancenet/jdh-update-release-081-rem…
Browse files Browse the repository at this point in the history
…ove-copy-button

(0.8.1) Remove chat session copy button
  • Loading branch information
ciprianjichici authored Aug 21, 2024
2 parents 1361ada + 36dcda1 commit d1a6b78
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/ui/UserPortal/components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@
<div class="navbar__content__left__item">
<template v-if="currentSession">
<span>{{ currentSession.name }}</span>
<Button
v-if="!$appConfigStore.isKioskMode"
v-tooltip.bottom="'Copy link to chat session'"
class="button--share"
icon="pi pi-copy"
text
severity="secondary"
aria-label="Copy link to chat session"
@click="handleCopySession"
/>
<Toast position="top-center" />
</template>
<template v-else>
Expand Down Expand Up @@ -156,17 +146,6 @@ export default {
},
methods: {
handleCopySession() {
const chatLink = `${window.location.origin}?chat=${this.currentSession!.id}`;
navigator.clipboard.writeText(chatLink);
this.$toast.add({
severity: 'success',
detail: 'Chat link copied!',
life: 5000,
});
},
handleAgentChange() {
this.$appStore.setSessionAgent(this.currentSession, this.agentSelection!.value);
const message = this.agentSelection!.value
Expand Down

0 comments on commit d1a6b78

Please sign in to comment.