Skip to content

Commit 01d08a8

Browse files
committed
feat: hide create new chat button in empty chat
1 parent 3d8c043 commit 01d08a8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

frontend/src/views/chat/index.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@
2929
<div class="logo">SQLBot</div>
3030
<div>{{ t('qa.greeting') }}</div>
3131
<div class="sub">{{ t('qa.description') }}</div>
32-
<el-button size="large" type="primary" @click="createNewChat">
32+
<el-button
33+
v-if="currentChatId === undefined"
34+
size="large"
35+
type="primary"
36+
@click="createNewChat"
37+
>
3338
<el-icon>
3439
<Plus />
3540
</el-icon>

0 commit comments

Comments
 (0)