Skip to content

Commit c6b16e7

Browse files
committed
refactor: update add component tips
1 parent 13d4778 commit c6b16e7

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

frontend/src/i18n/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"password_reset_successful": "Password reset successful"
3333
},
3434
"dashboard": {
35+
"add_success": "Add Success",
3536
"no_data": "No Relevant Content Found",
3637
"new_tab": "New Tab",
3738
"length_limit64": "Field length must be between 1 and 64",
@@ -505,4 +506,4 @@
505506
"back_community": "Restore to Community Edition",
506507
"confirm_tips": "Are you sure to restore to Community Edition?"
507508
}
508-
}
509+
}

frontend/src/i18n/zh-CN.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"password_reset_successful": "重置密码成功"
3535
},
3636
"dashboard": {
37+
"add_success": "添加成功",
3738
"no_data": "没找到相关内容",
3839
"new_tab": "新建Tab",
3940
"length_limit64": "字段长度需要在1-64之间",
@@ -517,4 +518,4 @@
517518
"back_community": "还原至社区版",
518519
"confirm_tips": "确定还原至社区版?"
519520
}
520-
}
521+
}

frontend/src/views/dashboard/editor/Toolbar.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ const addChatChart = (views: any) => {
138138
views.forEach((view: any) => {
139139
emits('addComponent', 'SQView', cloneDeep(view))
140140
})
141+
ElMessage({
142+
type: 'success',
143+
message: t('dashboard.add_success'),
144+
})
141145
}
142146
143147
const previewInner = () => {

0 commit comments

Comments
 (0)