Skip to content

Commit

Permalink
move chat tab to general pannel
Browse files Browse the repository at this point in the history
  • Loading branch information
qcgm1978 committed Aug 14, 2023
1 parent f165b34 commit da9f7da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/ChatSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
variant="outlined"
:text="$t('chat.backupToLocal')"
@click="downloadDataJson"
style="margin: 10px; float: left"
style="margin: 10px 10px 0 0; float: left"
></v-btn>
<!-- <pre v-if="jsonData">{{ jsonData }}</pre> -->
<v-file-input
Expand Down
6 changes: 1 addition & 5 deletions src/components/SettingsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<v-tabs v-model="tab" direction="vertical" color="primary">
<v-tab value="general">{{ $t("settings.general") }}</v-tab>
<v-tab value="proxy">{{ $t("proxy.name") }}</v-tab>
<v-tab value="chat">{{ $t("chat.name") }}</v-tab>
<v-tab
v-for="(setting, index) in botSettings"
:key="index"
Expand Down Expand Up @@ -59,16 +58,13 @@
@update:model-value="setCurrentMode($event)"
></v-select>
</v-list-item>
<component :is="chat" @close-dialog="closeDialog"></component>
</div>

<div v-if="tab == 'proxy'">
<component :is="proxy"></component>
</div>

<div v-if="tab == 'chat'">
<component :is="chat" @close-dialog="closeDialog"></component>
</div>

<template v-for="(setting, index) in botSettings" :key="index">
<component
v-if="tab == index"
Expand Down

0 comments on commit da9f7da

Please sign in to comment.