Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frontend/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"Data Q&A": "Data Q&A",
"Data Connections": "Data Sources",
"Dashboard": "Dashboard",
"AI Model Configuration": "AI Model Configuration"
"AI Model Configuration": "AI Model Configuration",
"Details": "Details"
},
"prompt": {
"no_prompt_words": "No prompt words",
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/i18n/ko-KR.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"Data Q&A": "스마트 데이터 조회",
"Data Connections": "데이터 소스",
"Dashboard": "대시보드",
"AI Model Configuration": "모델 구성"
"AI Model Configuration": "모델 구성",
"Details": "세부"
},
"prompt": {
"no_prompt_words": "프롬프트가 없습니다",
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"Data Q&A": "智能问数",
"Data Connections": "数据源",
"Dashboard": "仪表盘",
"AI Model Configuration": "模型配置"
"AI Model Configuration": "模型配置",
"Details": "详情"
},
"prompt": {
"no_prompt_words": "暂无提示词",
Expand Down
12 changes: 8 additions & 4 deletions frontend/src/views/system/prompt/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface Form {
prompt: string | null
specific_ds: boolean
datasource_ids: number[]
datasource_name: string[]
datasource_names: string[]
name: string | null
}

Expand Down Expand Up @@ -59,7 +59,7 @@ const defaultForm = {
type: null,
prompt: null,
datasource_ids: [],
datasource_name: [],
datasource_names: [],
name: null,
specific_ds: false,
}
Expand Down Expand Up @@ -602,7 +602,7 @@ const typeChange = (val: any) => {
</el-drawer>
<el-drawer
v-model="rowInfoDialog"
:title="$t('professional.professional_term_details')"
:title="$t('menu.Details')"
destroy-on-close
size="600px"
:before-close="onRowFormClose"
Expand All @@ -628,7 +628,11 @@ const typeChange = (val: any) => {
</el-form-item>
<el-form-item :label="t('ds.title')">
<div class="content">
{{ pageForm.datasource_name.join() }}
{{
pageForm.datasource_names.length
? pageForm.datasource_names.join()
: t('training.all_data_sources')
}}
</div>
</el-form-item>
</el-form>
Expand Down