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
4 changes: 3 additions & 1 deletion frontend/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@
"low_version": "Compatible with lower versions",
"ssl": "Enable SSL"
},
"sync_fields": "Sync Fields"
"sync_fields": "Sync Fields",
"sync_fields_success": "Sync fields successfully",
"sync_fields_failed": "Sync fields failed"
},
"datasource": {
"recommended_question": "Recommended Question",
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/i18n/ko-KR.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@
"low_version": "낮은 버전 호환",
"ssl": "SSL 활성화"
},
"sync_fields": "동기화된 테이블 구조"
"sync_fields": "동기화된 테이블 구조",
"sync_fields_success": "테이블 구조 동기화 성공",
"sync_fields_failed": "테이블 구조 동기화 실패"
},
"datasource": {
"recommended_question": "추천 질문",
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@
"low_version": "兼容低版本",
"ssl": "启用 SSL"
},
"sync_fields": "同步表结构"
"sync_fields": "同步表结构",
"sync_fields_success": "同步表结构成功",
"sync_fields_failed": "同步表结构失败"
},
"datasource": {
"recommended_question": "推荐问题",
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/i18n/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@
"low_version": "相容低版本",
"ssl": "啟用 SSL"
},
"sync_fields": "同步表結構"
"sync_fields": "同步表結構",
"sync_fields_success": "同步表結構成功",
"sync_fields_failed": "同步表結構失敗"
},
"datasource": {
"recommended_question": "推薦問題",
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/views/ds/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,12 @@ const syncFields = () => {
.syncFields(currentTable.value.id)
.then(() => {
btnSelectClick('d')
ElMessage.success(t('ds.sync_fields_success'))
loading.value = false
})
.catch(() => {
loading.value = false
ElMessage.warning(t('ds.sync_fields_failed'))
})
}

Expand Down Expand Up @@ -546,6 +548,7 @@ const btnSelectClick = (val: any) => {
<el-button
v-if="ds.type !== 'excel'"
:icon="Refresh"
secondary
style="margin-left: 12px"
@click="syncFields()"
>
Expand Down
Loading