Skip to content

Commit

Permalink
Refactor chat view: Update export button to create bot, remove duplic…
Browse files Browse the repository at this point in the history
…ate create bot button (#518)
  • Loading branch information
swuecho authored Aug 28, 2024
1 parent a8525fe commit 80f2b1a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions web/src/views/chat/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,10 @@ const handleUsePrompt = (_: string, value: string): void => {
<SvgIcon icon="icon-park-outline:clear" />
</span>
</HoverButton>
<HoverButton v-if="!isMobile" :tooltip="$t('chat.exportImage')" @click="handleExport">
<HoverButton v-if="!isMobile" data-testid="snpashot-button" :tooltip="$t('chat.createBot')"
@click="handleCreateBot">
<span class="text-xl text-[#4b9e5f] dark:text-white">
<SvgIcon icon="ri:download-2-line" />
<SvgIcon icon="fluent:bot-add-24-regular" />
</span>
</HoverButton>

Expand All @@ -604,12 +605,7 @@ const handleUsePrompt = (_: string, value: string): void => {
</HoverButton>


<HoverButton v-if="!isMobile" data-testid="snpashot-button" :tooltip="$t('chat.createBot')"
@click="handleCreateBot">
<span class="text-xl text-[#4b9e5f] dark:text-white">
<SvgIcon icon="fluent:bot-add-24-regular" />
</span>
</HoverButton>

<NAutoComplete v-model:value="prompt" :options="searchOptions" :render-label="renderOption"
:on-select="handleSelectAutoComplete">
<template #default="{ handleInput, handleBlur, handleFocus }">
Expand Down

0 comments on commit 80f2b1a

Please sign in to comment.