Skip to content

Commit 7a28587

Browse files
committed
fix(Embedded): correct Assistant-Basic Application-Basic Information Application name, prompts and other information
1 parent a4d2543 commit 7a28587

File tree

5 files changed

+30
-12
lines changed

5 files changed

+30
-12
lines changed
Lines changed: 3 additions & 3 deletions
Loading

frontend/src/i18n/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"AI Model Configuration": "AI Model Configuration"
77
},
88
"common": {
9+
"zoom_in": "Zoom in",
10+
"zoom_out": "Zoom out",
11+
"the_default_model": "Already the default model",
912
"as_default_model": "Set as Default Model",
1013
"no_model_yet": "No model yet",
1114
"intelligent_questioning_platform": "Welcome to the SQLBot Intelligent Questioning Platform",

frontend/src/i18n/zh-CN.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"AI Model Configuration": "模型配置"
77
},
88
"common": {
9+
"zoom_in": "放大",
10+
"zoom_out": "缩小",
11+
"the_default_model": "已是默认模型",
912
"as_default_model": "设为默认模型",
1013
"no_model_yet": "暂无模型",
1114
"intelligent_questioning_platform": "欢迎使用 SQLBot 智能问数平台",
@@ -567,7 +570,7 @@
567570
"license": {
568571
"error_tips": "是否刷新页面?",
569572
"offline_tips": "服务已经下线,请联系管理员重启服务!"
570-
},
573+
},
571574
"system": {
572575
"system_settings": "系统设置",
573576
"appearance_settings": "外观设置",
@@ -599,4 +602,4 @@
599602
"setting_successfully": "设置成功",
600603
"customize_theme_color": "自定义主题色"
601604
}
602-
}
605+
}

frontend/src/views/system/embedded/index.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -617,13 +617,11 @@ const saveHandler = () => {
617617
class="form-content_error"
618618
@submit.prevent
619619
>
620-
<el-form-item prop="name" :label="t('embedded.basic_information')">
620+
<el-form-item prop="name" :label="t('embedded.application_name')">
621621
<el-input
622622
v-model="currentEmbedded.name"
623623
:placeholder="
624-
$t('datasource.please_enter') +
625-
$t('common.empty') +
626-
$t('embedded.basic_information')
624+
$t('datasource.please_enter') + $t('common.empty') + $t('embedded.application_name')
627625
"
628626
clearable
629627
autocomplete="off"

frontend/src/views/system/model/Card.vue

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts" setup>
22
import delIcon from '@/assets/svg/icon_delete.svg'
3-
import icon_embedded_outlined from '@/assets/svg/icon-setting.svg'
3+
import icon_admin_outlined from '@/assets/svg/icon_admin_outlined.svg'
44
import edit from '@/assets/svg/icon_edit_outlined.svg'
55
import { get_supplier } from '@/entity/supplier'
66
import { computed, ref } from 'vue'
@@ -76,9 +76,23 @@ defineExpose({ showErrorMask })
7676
<span class="value"> {{ baseModel }}</span>
7777
</div>
7878
<div class="methods">
79-
<el-button secondary @click="handleDefault">
79+
<el-tooltip
80+
v-if="isDefault"
81+
effect="dark"
82+
:content="$t('common.the_default_model')"
83+
placement="top"
84+
>
85+
<el-button secondary disabled>
86+
<el-icon style="margin-right: 4px" size="16">
87+
<icon_admin_outlined></icon_admin_outlined>
88+
</el-icon>
89+
{{ $t('common.as_default_model') }}
90+
</el-button>
91+
</el-tooltip>
92+
93+
<el-button v-else secondary @click="handleDefault">
8094
<el-icon style="margin-right: 4px" size="16">
81-
<icon_embedded_outlined></icon_embedded_outlined>
95+
<icon_admin_outlined></icon_admin_outlined>
8296
</el-icon>
8397
{{ $t('common.as_default_model') }}
8498
</el-button>

0 commit comments

Comments
 (0)