Skip to content

Commit

Permalink
Merge pull request #220 from aziontech/fix/ai-widget
Browse files Browse the repository at this point in the history
[UXE-0000] fix/ai-widget
  • Loading branch information
PedroMiolaSilva authored Jan 24, 2025
2 parents 9653ad9 + d395421 commit 4643399
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions templates/vue/vue3-ai-chatbot-widget/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/>
</div>
</template>
<template #end>
<div class="flex gap-3">
<PrimeButton
icon="pi pi-eraser"
Expand All @@ -29,14 +30,6 @@
v-tooltip.bottom="'New chat'"
@click="clearChat"
/>
<PrimeButton
icon="pi pi-external-link"
outlined
class="surface-border h-8 w-8"
aria-label="Open a chat in new tab"
v-tooltip.bottom="'Open a chat in new tab'"
@click="openChatInNewTab"
/>
<PrimeButton
icon="pi pi-times"
outlined
Expand All @@ -46,6 +39,7 @@
@click="closeSidebar"
/>
</div>
</template>
</Toolbar>
<div
class="flex flex-auto flex-col overflow-x-hidden p-6 pt-3 custom-scroll"
Expand Down Expand Up @@ -160,6 +154,11 @@
const toggleChat = () => {
chatVisible.value = !chatVisible.value
}
const closeSidebar = () => {
chatVisible.value = false
}
</script>

<style>
Expand Down

0 comments on commit 4643399

Please sign in to comment.